Root-App / react-native-mock-render

a fork of react-native-mock that renders
MIT License
85 stars 50 forks source link

Fix type for 'ItemSeparatorComponent' prop of 'FlatList' #69

Closed jgarrone closed 4 years ago

jgarrone commented 5 years ago

https://github.com/Root-App/react-native-mock-render/blob/315e5b6471e937a8fad91a90777a1c879a6989e6/src/components/FlatList.js#L39 This is currently throwing a warning when running some tests:

    Warning: Failed prop type: Invalid prop `ItemSeparatorComponent` of type `function` supplied to `FlatList`, expected a single ReactElement.

The type should be a component type or similar (doc).

IsaacSmith13 commented 4 years ago

This is fixed by https://github.com/Root-App/react-native-mock-render/pull/81, so I'm closing it