diff --git a/Libraries/Utilities/codegenNativeCommands.js b/Libraries/Utilities/codegenNativeCommands.js index ad0023d51d4..3642b8c20ab 100644 --- a/Libraries/Utilities/codegenNativeCommands.js +++ b/Libraries/Utilities/codegenNativeCommands.js @@ -18,6 +18,7 @@ function codegenNativeCommands(options: Options<$Keys>): T { const commandObj: {[$Keys]: (...$ReadOnlyArray) => void} = {}; options.supportedCommands.forEach(command => { + // $FlowFixMe[missing-local-annot] commandObj[command] = (ref, ...args) => { // $FlowFixMe[incompatible-call] dispatchCommand(ref, command, args); diff --git a/packages/react-native-codegen/src/parsers/utils.js b/packages/react-native-codegen/src/parsers/utils.js index 299bddef91d..ca939b04af2 100644 --- a/packages/react-native-codegen/src/parsers/utils.js +++ b/packages/react-native-codegen/src/parsers/utils.js @@ -38,6 +38,7 @@ function createParserErrorCapturer(): [ Array, ParserErrorCapturer, ] { + // $FlowFixMe[missing-empty-array-annot] const errors = []; function guard(fn: () => T): ?T { try { @@ -46,12 +47,14 @@ function createParserErrorCapturer(): [ if (!(error instanceof ParserError)) { throw error; } + // $FlowFixMe[incompatible-call] errors.push(error); return null; } } + // $FlowFixMe[incompatible-return] return [errors, guard]; }