diff --git a/packages/react-native-codegen/src/parsers/flow/components/commands.js b/packages/react-native-codegen/src/parsers/flow/components/commands.js index 48103dc595f..c967645211f 100644 --- a/packages/react-native-codegen/src/parsers/flow/components/commands.js +++ b/packages/react-native-codegen/src/parsers/flow/components/commands.js @@ -76,6 +76,11 @@ function buildCommandSchema(property, types: TypeDeclarationMap) { type: 'FloatTypeAnnotation', }; break; + case 'StringTypeAnnotation': + returnType = { + type: 'StringTypeAnnotation', + }; + break; default: (type: empty); throw new Error(