React-native-push-notification: Compilation error with RN 0.47

Created on 14 Aug 2017  路  9Comments  路  Source: zo0r/react-native-push-notification

With version 0.47 of react-native I get the following error:

\android\src\main\java\com\dieam\reactnativepushnotification\ReactNativePushNotificationPackage.java:20: error: method does not override or implement a method from a supertype @Override ^

In this version of react-native the method createJSModules has been removed from ReactPackage.
Maybe it was not a great idea, because it seems like a breaking change.
However I suppose method must be deleted to have a version of this package compatible with RN 0.47.

Stale

Most helpful comment

just remove the @Override in this file

All 9 comments

523

Any plan to support RN 0.47?

just remove the @Override in this file

Any updates?

@NguyenThaiHoc1 's solution worked for me. This can be a workaround solution for somebody needed.

last commit on this repo is 3months old :(

Run yarn add [email protected] or npm i [email protected], worked!

AS @brunoosilva mentioned, version 3.0.1 solves the issue

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings