react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Not compatible RN 0.29+

Open drpiou opened this issue 10 years ago • 4 comments

Android breaking changes are not applied, I can't compile anymore my RN project.

drpiou avatar Jul 07 '16 09:07 drpiou

@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)

stereodenis avatar Jul 07 '16 11:07 stereodenis

example of migration https://github.com/yamill/react-native-orientation/pull/85

stereodenis avatar Jul 07 '16 14:07 stereodenis

I did a quick fix to get this working again in this PR, it worked well for me. #134

clintonjrobinson avatar Jul 07 '16 18:07 clintonjrobinson

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()

Streemo avatar Jul 23 '16 17:07 Streemo