React-native version - 0.58.4
installed react-native-push-notification
follow this steps of linking
Add the following to your Project: node_modules/@react-native-community/push-notification-ios/ios/PushNotificationIOS.xcodeproj
Add the following to Link Binary With Libraries: libRNCPushNotificationIOS.a
but xCode gives an error RNCPushNotificationIOS.h file not found after cleaning the project and all stuff.
Hi! add $(SRCROOT)/../node_modules/@react-native-community/push-notification-ios/ios in your Header Search Path in Xcode.
If you are using a Podfile you can also remove React-RCTPushNotification and add the following...
pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'
More details https://github.com/zo0r/react-native-push-notification/issues/1161
Hi! try to run pod install in root iOS folder
@Dallas62 I just faced this issue and I would have expected auto linking to handle this, am I wrong?
the iOS version is not a part of this library.
I know that, but it's a dependency of this library https://github.com/zo0r/react-native-push-notification/blob/3d769ad2f661432dbeaed27f031ab13bd07985d4/package.json#L27
Maybe we should ask user to install themselves (& specify the version this package need in peerDependencies instead of depdendencies ?
Import the below two imports above the FB_SONARKIT_ENABLED in AppDelegate.m
This worked for me. Cheers
Most helpful comment
If you are using a Podfile you can also remove React-RCTPushNotification and add the following...
pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'More details https://github.com/zo0r/react-native-push-notification/issues/1161