marcshilling / react-native-idle-timer

A cross-platform bridge that allows you to enable and disable the screen idle timer in your React Native app
MIT License
212 stars 41 forks source link

Change react-native headers for 0.40 compatibility #6

Closed alfonsodev closed 7 years ago

alfonsodev commented 7 years ago

This pull request adds compatibility with react-native 0.40 while keeping backwards compatibility with older versions.
The breaking changes were announced here https://github.com/facebook/react-native/releases/tag/v0.40.0
Backwards compatibilty solution was founded here https://medium.com/@thisismissem/how-to-upgrade-react-native-modules-in-a-backwards-compatible-manner-a5b5c48d590c#.u4m6ktkex