Flow: fix VirtualizedList issues, remove few no longer valid suppressions#30128
Flow: fix VirtualizedList issues, remove few no longer valid suppressions#30128Simek wants to merge 3 commits into
Conversation
|
I had to revert the @cpojer This might be something to check out and verify. Is it possible that CI uses different version of Flow? |
Base commit: 0d02c60 |
Base commit: 0d02c60 |
57a9a73 to
4f015b3
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
@lunaleaps has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
| /* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an | ||
| * error found when Flow v0.125.1 was deployed. To see the error, delete | ||
| * this comment and run Flow. */ | ||
| (node.instance && |
There was a problem hiding this comment.
There are still flow errors when I imported this -- to fix, please change this to:
(node.instance != null &&
// $FlowFixMe[prop-missing] // Remove this after deleting `Touchable`
typeof node.instance.touchableHandlePress === 'function'),
| /* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an | ||
| * error found when Flow v0.125.1 was deployed. To see the error, delete | ||
| * this comment and run Flow. */ | ||
| node => node.props && regex.exec(node.props.children), |
There was a problem hiding this comment.
and this to
node => node.props != null && regex.exec(node.props.children) !== null,
|
@lunaleaps Thank you for the review, I have applied the suggested changes. |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@lunaleaps has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@lunaleaps merged this pull request in 927573c. |
Summary
This PR fixes few suppressed Flow issues in
VirtualizedListcomponent.I have also removed few no longer valid Flow suppressions in
ActivityIndicatorandReactNativeTestTools.Changelog
[General] [Fixed] - Flow: fix few issues in
VirtualizedList,[General] [Removed] - Flow: remove few no longer valid suppressions in
ReactNativeTestToolsTest Plan
Successful run of
yarn flowcheck.