From 6fc3333b685657c8e6425df9fcb4fe1ce7374d40 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Wed, 24 May 2023 17:42:16 +0100 Subject: [PATCH] Add $FlowFixMe to fix React Native DiffTrain (#26841) --- .../rollup/shims/react-native/ReactNativeViewConfigRegistry.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js index bd4319e0e4477..16ec085475405 100644 --- a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js +++ b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js @@ -106,6 +106,7 @@ exports.get = function (name: string): ViewConfig { 'View config getter callback for component `%s` must be a function (received `%s`).%s', name, callback === null ? 'null' : typeof callback, + // $FlowFixMe[recursive-definition] typeof name[0] === 'string' && /[a-z]/.test(name[0]) ? ' Make sure to start component names with a capital letter.' : '',