React-native-config: 'ReactNativeConfig.h' file not found

Created on 6 Feb 2017  路  3Comments  路  Source: luggit/react-native-config

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

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/**"

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings