Skip to content

Commit

Permalink
Add $FlowFixMe to fix React Native DiffTrain (#26841)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC authored May 24, 2023
1 parent 535c038 commit 6fc3333
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
: '',
Expand Down

0 comments on commit 6fc3333

Please sign in to comment.