Not compatible RN 0.29+
Android breaking changes are not applied, I can't compile anymore my RN project.
@zo0r what do you think?
Project/android/app/src/main/java/com/nptv/wtcceurosport/MainApplication.java:37: error: constructor ReactNativePushNotificationPackage in class ReactNativePushNotificationPackage cannot be applied to given types;
mReactNativePushNotificationPackage = new ReactNativePushNotificationPackage(this);
^
required: Activity
found: <anonymous ReactNativeHost>
reason: actual argument <anonymous ReactNativeHost> cannot be converted to Activity by method invocation conversion
Project/android/app/src/main/java/com/nptv/wtcceurosport/MainApplication.java:57: error: cannot find symbol
super.onNewIntent(intent);
^
symbol: method onNewIntent(Intent)
example of migration https://github.com/yamill/react-native-orientation/pull/85
I did a quick fix to get this working again in this PR, it worked well for me. #134
I'm getting this with [email protected], [email protected]. Apparently not calling the constructor on this solved the problem.
mReactNativePushNotificationPackage = new ReactNativePushNotificationPackage(this)
becomes
mReactNativePushNotificationPackage = new ReactNativePushNotificationPackage()