I am getting following error with react native version 0.40.0 version React/RCTBundleURLProvider.h' file not found.
I tried deleting node modules , installing it with npm install and clearing watchman.multiple times. But still not able to get it working.
Got it working by dropping the default target on XCode and recreating it again.
Also, make sure to check Manage Schemes
> [select your main target] > Edit
> Build
tab.
Check that React
is in the list, and mark the scheme as Shared
. Otherwise, it will be saved in your user's folder and GIT will ignore it.
Hope it helps, official docs didn't help
As of React Native 0.40 (see release notes), native code on iOS must refer to headers out of the react namespace. Previously the following would work:
#import "RCTBundleURLProvider.h"
But now all headers have been moved:
#import <React/RCTBundleURLProvider.h>
If you are updating an existing project, you need to either
react-native upgrade
and merge these changes manually, If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With