RealOrangeOne / react-native-mock

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

TypeError: _reactNative.Platform.select is not a function #70

Closed bhaskarmurthy closed 8 years ago

bhaskarmurthy commented 8 years ago

Running a test on a component that uses Platform.select, and getting a test exception:

TypeError: _reactNative.Platform.select is not a function at Object.<anonymous> (Fonts.js:20:33) at Module._compile (module.js:409:26)

react-native-mock@0.2.3

RealOrangeOne commented 8 years ago

This is because the Platform.select API hasnt been mocked yet. There is currently an open PR (#61) that is solving this. However he hasnt responded for a while, so feel free to submit your own!

evollu commented 8 years ago

since the fix has been merged, can you bump the version?

RealOrangeOne commented 8 years ago

Yes, I shall try and do a deploy later today