I just installed react-native-push-notification and I'm getting this error on RN 0.37

you need to write react-native link in console (terminal) and then restart your server
what worked for me was following the iOS Push Notifications setup guide on the react native website after running react-native link. There are some libraries you need to link in your xcode project before everything will be chipper
https://facebook.github.io/react-native/docs/pushnotificationios.html
I ran react-native link in the command line but the error continued. I'll try reviewing the setup guide to see if I missed something.
Check your java code has the necessary lines in it that load up this module

Got same issue only for iOS, android work well
Ok, i solve it. Follow the white rabbit :)
https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
For Android check https://github.com/zo0r/react-native-push-notification#android-manual-installation
Just for people coming here at this point in the conversation the facebook.github.io link just above is broken, pointing to totally different place. Here is the same link but should work: https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
For me, react-native-push-notification wasn't automatically linked for iOS when I ran react-native link:
[dev] react-native link
rnpm-install info Android module react-native-fbsdk is already linked
rnpm-install info iOS module react-native-fbsdk is already linked
rnpm-install info Linking react-native-push-notification android dependency
rnpm-install info Android module react-native-push-notification has been successfully linked
rnpm-install info Android module react-native-svg is already linked
rnpm-install info iOS module react-native-svg is already linked
For some reason, it only linked Android.
But following the instructions that @dereksweet provided seemed to resolve the issue.
Not automatically linked for me too
same here
Yeah react-native link didn't work for me either. I followed these instructions and my error went away.
Add the following to your Project: node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj
Add the following to Link Binary With Libraries: libRCTPushNotification.a
Add the following to your Header Search Paths: $(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS and set the search to recursive
Same Issue Here ...! Any update or workaround for this??
Manual linking didn't fix it for me on RR 0.44. In fresh project with RR 0.46 no problem though
I'm getting this error as well running run-ios, despite properly following the linking instructions. It works running from Xcode, but would like it to work when running the terminal command.
Any working solutions?
Manual linking worked for me - you have to follow the instructions here
I had to manually link using Xcode.
react-native link cmd didn't work. As per all other comments follow https://facebook.github.io/react-native/docs/pushnotificationios.html#content and https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
I have linked it manually for 8 times today already and it is still not working... Any help would be appreciated. I can see below that it is not recognising react-native-push-notification but it is recognising a different on (which I don't want to use but just added as a test)
rnpm-install info Android module react-native-notifications is already linked
rnpm-install info iOS module react-native-notifications is already linked
rnpm-install info Android module react-native-push-notification is already linked
rnpm-install info Linking assets to ios project
rnpm-install info Linking assets to android project
rnpm-install info Assets have been successfully linked to your project
For those CocoaPods users the link might be useful.
At least I hope it is.
Most helpful comment
Just for people coming here at this point in the conversation the facebook.github.io link just above is broken, pointing to totally different place. Here is the same link but should work: https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking