React/RCTEventEmitter.h file not found

后端 未结 8 1340
梦谈多话
梦谈多话 2021-02-04 02:56

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 fou

8条回答
  •  梦如初夏
    2021-02-04 03:10

    Just follow these steps:

    1. create project react-native init project.
    2. add this line to pod file in ios folder: pod 'React-RCTPushNotification', :path => '../node_modules/react-native/Libraries/PushNotificationIOS'
    3. cd ios && pod install
    4. cd .. && react-native run-ios

    No need to do messy manual linking

提交回复
热议问题