RealOrangeOne / react-native-mock

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

Fixes issue with TabBarIOS. Adds Picker.Item #121

Closed bob-carson closed 7 years ago

bob-carson commented 7 years ago

I ran into an issue where the current implementation of TabBarIOS would not render properly. Using the component would produce errors like this one:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of \

This fixes that and implements the same structure for Picker. Picker.Item is also renderable in react-native and this was not previously implemented in react-native-mock.

RealOrangeOne commented 7 years ago

Nice. Thanks for adding tests too!