mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix commands with no args
Summary: Fixing a typo Reviewed By: JoshuaGross Differential Revision: D16434634 fbshipit-source-id: 72a6b698bcd0ba9c10dfbdf264011e0a31ea06b6
This commit is contained in:
committed by
Facebook Github Bot
parent
4eca2e226c
commit
fbd5dee1e4
+5
-6
@@ -129,15 +129,14 @@ function getCommandArgJavaType(param) {
|
||||
}
|
||||
|
||||
function getCommandArguments(command: CommandTypeShape): string {
|
||||
const commandArgs = command.typeAnnotation.params
|
||||
.map((param, index) => {
|
||||
return [
|
||||
'view',
|
||||
...command.typeAnnotation.params.map((param, index) => {
|
||||
const commandArgJavaType = getCommandArgJavaType(param);
|
||||
|
||||
return `args.${commandArgJavaType}(${index})`;
|
||||
})
|
||||
.join(', ');
|
||||
|
||||
return `view, ${commandArgs}`;
|
||||
}),
|
||||
].join(', ');
|
||||
}
|
||||
|
||||
function generateCommandCasesString(
|
||||
|
||||
Reference in New Issue
Block a user