You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Native 0.29 moves getPackages() into MainApplication.java. To support 0.29, we should extend ReactContextBaseJavaModule and use getCurrentActivity() to get a reference when needed rather than requiring one at construction time.
I tried running this package on RN 0.30.0 and it tells me that getPackages cannot be overriden because the method does not exist in the parent class. Further, if I add new NotificationPackage(this) to my MainApplication.java file it throws a wrong number of arguments error (NotificationPackage constructor is not expecting an argument).
@andy9775 No, I haven't had time to work on this yet. We're still running an older version of RN until our dependencies work with RN >0.28.
Note that you won't be able to reference the activity in MainApplication.java with this, because MainApplication is not an activity like ReactActivity.java was. This library has to change, not just the way you're integrating it into your app.
React Native 0.29 moves
getPackages()
into MainApplication.java. To support 0.29, we should extendReactContextBaseJavaModule
and usegetCurrentActivity()
to get a reference when needed rather than requiring one at construction time.See:
facebook/react-native@49f20f4#commitcomment-17965418
The text was updated successfully, but these errors were encountered: