peggyrayzis/react-native-create-bridge

Remove createJSModules from packages of Android templates

peggyrayzis opened this issue · 2 comments

This was a breaking change in RN v0.47.2. Not sure if overriding this method is necessary for native modules to work in earlier versions -- if so, we'll need to check the version in package.json and update the templates accordingly.

And the compiler fails if that method isn't overridden in earlier versions :( looks like we have to do the version check

Had the same issue with react-native-orientation. It's a breaking change for Android. Anything above v0.47 needs to have it removed, otherwise it breaks compilation. Any project before v0.47 definitely needs the @Override call.