-
Notifications
You must be signed in to change notification settings - Fork 659
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
ios undefined problem #800
Comments
I had the same experience with v. 1.5.1 (react-native@0.73.3), where it wouldn't pick up the config values on iOS - it returned an empty object. Following the advice of @gkqkehs7 it now works! |
Upgrade from RN 0.71.1 to 0.74.1 and the config object stopped working. When I log it I can see that it has a |
No longer works after react-native upgrade to 0.74.1. Always returns undefined. |
I'm using:
and import + using like this:
And everything works perfect for me. |
I've got the same problem on Android. |
@ArturBuja have you done some sort of manual linking or custom setup? How did you integrate the library on the project? I am using: "react": "18.2.0", Still getting undefined on iOS. |
Just whole setup from docs.
There is a lot to setting in ios, also like in android so maybe you missed something. And if you have f.e. .env.stagging, and .env file the RN will read varables from .env. |
I am using "react-native": "^0.74.3", It works but you should clean the project (using Xcode / Product / Clean build folder) before launching the app. |
Yes, this works |
I'm using react-native@0.73.5 and react-native-config@1.5.1,
And I had a problem with it coming up as undefined on iOS.
I downgraded react-native-config to 1.4.6 and it works successfully.
The text was updated successfully, but these errors were encountered: