mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Support string command arguments
Summary: Support command arguments that are strings Reviewed By: JoshuaGross Differential Revision: D16509728 fbshipit-source-id: 003aba66231d204071d043c01cb0781150d0edb9
This commit is contained in:
committed by
Facebook Github Bot
parent
a174647698
commit
0314305e12
+2
@@ -97,6 +97,8 @@ function getCommandArgJavaType(param) {
|
||||
return 'boolean';
|
||||
case 'Int32TypeAnnotation':
|
||||
return 'int';
|
||||
case 'StringTypeAnnotation':
|
||||
return 'String';
|
||||
default:
|
||||
(param.typeAnnotation.type: empty);
|
||||
throw new Error('Receieved invalid typeAnnotation');
|
||||
|
||||
Reference in New Issue
Block a user