Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ReactNativeConfig.h' file not found #81

Open
himanshu-satija opened this Issue Feb 6, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@himanshu-satija
Copy link

himanshu-satija commented Feb 6, 2017

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

@fabriziomoscon

This comment has been minimized.

Copy link
Contributor

fabriziomoscon commented May 23, 2017

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

@gvlekke

This comment has been minimized.

Copy link

gvlekke commented Apr 18, 2018

@fabriziomoscon is that in the readme? I didn't see it. Think we should add that right?

@jaysbytes

This comment has been minimized.

Copy link

jaysbytes commented Feb 14, 2019

The react-native link should add it but it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.