mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Commands: support Float arguments
Summary: Support codegen'ing commands with Float arguments. Reviewed By: mdvacca Differential Revision: D16785534 fbshipit-source-id: 8174ae40762c1114b87a023cb2b69b2515dc6e23
This commit is contained in:
committed by
Facebook Github Bot
parent
724fe11472
commit
825e1c087c
+2
@@ -99,6 +99,8 @@ function getCommandArgJavaType(param) {
|
||||
switch (param.typeAnnotation.type) {
|
||||
case 'BooleanTypeAnnotation':
|
||||
return 'boolean';
|
||||
case 'FloatTypeAnnotation':
|
||||
return 'float';
|
||||
case 'Int32TypeAnnotation':
|
||||
return 'int';
|
||||
case 'StringTypeAnnotation':
|
||||
|
||||
Reference in New Issue
Block a user