React/RCTEventEmitter.h file not found

后端 未结 8 1336
梦谈多话
梦谈多话 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:04

    This works for me on detached Expo project

    "react": "16.6.3",
    "react-native": "0.58.6",
    

    Add 'RCTPushNotification' to your pod and run pod install

    pod 'React', :path => '../node_modules/react-native', :subspecs => [    
        'RCTPushNotification',
      ]
    

提交回复
热议问题