I am trying to implement PushNotificationIOS with a detached Expo app. I am running SDK 21.0.0 (React Native 0.48).
I am getting React/RCTEventEmitter file not found
I have completed the following steps:
- Open my
.xcworkspace
project - Drag the
RCTPushNotification.xcodeproj
into my Libraries folder - Added
libRCTPushNotification.a
intoApp > Build Phases > Link Binary With Libraries
- Added
$(SRCROOT)/../node_modules/react-native/Libraries
under Header Search Paths - I also tried without the/../
. I have a bunch of Pods in the Header Search Paths list too.
I then added the following into AppDelegate.m
but when I click through to the file (⌘ + click), I get a question mark.
#import <React/RCTPushNotificationManager.h>
If I change it to the below, it works, I can click through
#import "RCTPushNotificationManager.h"
However, this is my problem
When I clean and build my project, I get the below error in RCTPushNotificationManager.h
to say:
'React/RCTEventEmitter.h' file not found