As per docs, I imported header like this
#import "ReactNativeConfig.h"
But the build fails and it says 'ReactNativeConfig.h' file not found
This works though
#import <ReactNativeConfig/ReactNativeConfig.h>
react-native-config - v0.3.1
react-native - v0.40.0
Xcode - v8.2.1
You need to add the correct headers search path in your project under xcode.
go to under Build Settings and search for Search Paths > Header Search Paths.
Add:
"$(SRCROOT)/../node_modules/react-native-config/ios/**"
@fabriziomoscon is that in the readme? I didn't see it. Think we should add that right?
The react-native link should add it but it doesn't.
Most helpful comment
You need to add the correct headers search path in your project under xcode.
go to under Build Settings and search for Search Paths > Header Search Paths.
Add:
"$(SRCROOT)/../node_modules/react-native-config/ios/**"