Add $FlowFixMe to fix React Native DiffTrain (#26841)
Samuel Susla committed
May 24, 2023 at 17:42 UTC
6fc3333b685657c8e6425df9fcb4fe1ce7374d40
1 file changed
+1
scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js
+1
@@ -106,6 +106,7 @@ exports.get = function (name: string): ViewConfig {
106
'View config getter callback for component `%s` must be a function (received `%s`).%s',
107
name,
108
callback === null ? 'null' : typeof callback,
109
+ // $FlowFixMe[recursive-definition]
110
typeof name[0] === 'string' && /[a-z]/.test(name[0])
111
? ' Make sure to start component names with a capital letter.'
112
: '',