I have tried the example code wont work
I tried to import PushNotification from 'react-native-push-notification';
Wont work I installed npm i @react-native-community/push-notification-ios and still wont work
any help ?
I have tried the example code wont work
I tried toimport PushNotification from 'react-native-push-notification';Wont work I installednpm i @react-native-community/push-notification-iosand still wont work
any help ?
I had the same Issue...
What I did is install the push-notification-ios, just like you did. Just installing won't help.
@TheHunterDog
This happened to me when I updated react-native-push-notification package.
To resolve this, follow install instructions at https://github.com/react-native-community/react-native-push-notification-ios, then, to avoid duplicate symbols issue, remove this line from podfile if you have it:
pod 'React-RCTPushNotification', :path => '../node_modules/react-native/Libraries/PushNotificationIOS'
I also had the same issue and this is what I did to solve:
@react-native-community/push-notification-ios has already been installed as a dependency of react-native-push-notification. So you do not need to install it separatelypod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'pod install in the ios folderi am also experiencing this. the above solutions dont seem to work : /
Close the simulator and re-run/re-build.
Worked for me.
I also had the same issue and this is what I did to solve:
@react-native-community/push-notification-ioshas already been installed as a dependency ofreact-native-push-notification. So you do not need to install it separately- Update your podfile by adding this
pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'- Run
pod installin theiosfolder- In your AppDelegate.m, update this https://github.com/react-native-community/react-native-push-notification-ios#update-appdelegatem
This helped me really much will close issue now Thank you so much
Most helpful comment
I also had the same issue and this is what I did to solve:
@react-native-community/push-notification-ioshas already been installed as a dependency ofreact-native-push-notification. So you do not need to install it separatelypod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'pod installin theiosfolder