React-native-notifications: 'React/RCTEventEmitter.h' file not found

Created on 13 Aug 2019  路  14Comments  路  Source: wix/react-native-notifications

Screen Shot 2019-08-13 at 4 47 11 PM

"dependencies": {
"react": "16.8.6",
"react-native": "0.60.4",
"react-native-notifications": "^2.0.6"
},

馃彋 stale

Most helpful comment

Worked for me by using pods instead, however I am on react-native 0.60.5

I unlinked the library and added this line to podfile:
pod 'react-native-notifications', :path => '../node_modules/react-native-notifications'

All 14 comments

Any luck, Did you got fix for this issue?

Hello,
Having the same issue,
how did you fix it please? (@amarjeet89 or @HoangTrung )
Thanks

@Guiro44
I downgraded my reactive version.
"react-native": "0.59.8",
"react-native-notifications": "^2.0.6",

Shouldn't have to downgrade React to fix this. Are there any viable solutions to this?

Hi,
Thanks for you answers.
@bkarst , You can try to fix it by doing:

  • add the library as target (under scheme, +, check the library)
  • select the library as project,
  • go to Build Phases
  • search header search paths
  • Change this with real paths of your headers

Same issue.
"react": "16.8.3",
"react-native": "0.59.10",
"react-native-notifications": "^2.1.3",

I've found out that a folder pointed in the Header Search Paths property contains the RCTEventEmmiter.h file but it's under node_modules/react-native/React/Modules/ folder. When I changed the import @HoangTrung mentioned, to React/Modules/RCTEventEmitter.h I got different errors :D But i guess this RCTEventEmitter part got compiled properly.
Maybe this will lead someone to some solution.

Worked for me by using pods instead, however I am on react-native 0.60.5

I unlinked the library and added this line to podfile:
pod 'react-native-notifications', :path => '../node_modules/react-native-notifications'

@jakecronin I have tried adding it with pods but than I get "RNNotifications.h" not found

here is my workaround on these version of packages:

"react-native-notifications": "^2.0.6",
"react": "16.9.0",
"react-native": "0.61.2",

I follow this link for adding Manual linking:
hint: for Header Search Paths setting I've add "${PODS_CONFIGURATION_BUILD_DIR}/react-native-notifications" separately on _Debug_ and _Release_ (don't forget the double quotation arount the path)
also before running go to ios folder and run pod install again

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Worked for me by using pods instead, however I am on react-native 0.60.5

I unlinked the library and added this line to podfile:
pod 'react-native-notifications', :path => '../node_modules/react-native-notifications'

Been at it for days, this worked for me.

yarn add react-native-notifications

followed direction to add to AppDelegate.m

added the following line to my pod file

ran pod install

App build succeeded

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

The issue has been closed for inactivity.

Issue still unresolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josefheld picture josefheld  路  4Comments

Mimble-Wimble picture Mimble-Wimble  路  3Comments

WhereBeTheDan picture WhereBeTheDan  路  5Comments

denissb picture denissb  路  5Comments

Payel-Dutta28 picture Payel-Dutta28  路  5Comments