RealOrangeOne / react-native-mock

A fully mocked and test-friendly version of react native (maintainers wanted)
MIT License
571 stars 153 forks source link

Add missing required default 'renderScrollComponent' prop for ListView #39

Closed greg5green closed 8 years ago

greg5green commented 8 years ago

Why?

This isn't a prop that I generally pass through to the ListView component (I generally want the default ScrollView component) and it was giving me warnings when running my tests:

Warning: Failed propType: Required prop renderScrollComponent was not specified in ListView.

What changed?

  • Added the default prop configuration for renderScrollComponent that matches what is in the un-mocked RN code