0

I am trying to create a Custom Module for my React Native app, and I've followed the guide However, when I create the header file and import **<React/RCTBridgeModule.h> ** I am getting error as 'React/RCTBridgeModule.h' file not found. I Googled and tried various solution from SO, however, none of them works.

One thing I've noticed is that I am able to import the <React/{any-header-file.h}> file in the AppDelegate.mm, but when I try it in my Custom Module I can't get the completition suggestions too. Any help is really appreciated.

Info: I am using react-native 0.72.7. and Xcode 15.

Solutions I tried:

  1. Clean Pods and Cache.
  2. Re-installed node modules.
  3. Configured Header Search Paths.
  4. Edits Schemes.

Expected behaviour Will able to import RCTBridgeModule header file.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.