-
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
Config is empty after upgrade to RN 0.71 #777
Comments
Facing the same issue with RN |
Anticipating you are using expo. Launch it with |
@kulak91 No, I am not using expo. |
I'm having the same issue with RN 0.72.5 (new arch not enabled). Has anyone found some solution or workaround ? |
Same issue I'm running it with Expo & @kulak91 suggestion did not work. |
I upgrade to RN 0.71.13 and then upgraded react-native-config from 1.4.6 to 1.5.1 at this point iOS Config became empty. Downgrade react-native-config back to 1.4.6 and it started working again, Config was being returned as expected. |
the same problem is happening in the android |
This hack gives us the idea that probably one of the files in the library doesn't have the correct permission. and seems like this is going to be related to Mac/Unix. |
@gimi-anders can you please tell us your OS and xcode version? |
@vanenshi When I tried this the last time I was on OS 13 and xcode 14. |
@gimi-anders i am using the xcode 15 and the same problem is happening, so its not related to the xcode version |
the same problem is happening in the android. NativeModules.ReactNativeConfigModule it's null |
I having the same in my app. |
+1 Like @kiwioz, downgrading to 1.4.6 restored function. |
had same problem, turns out i missed this step in config https://github.com/luggit/react-native-config#app-extensions |
Struggling with same issue from past two weeks, my error is in iOS build with error message "ReactNativeConfig.h" not found. Anyone got a real solution? |
This was an issue with the nx monorepo. After updating nx version the issue got resolved. |
@vanenshi Any progress on this? |
@gimi-anders sorry I caught up in some business related stuff and couldn't work on this. 🫠 |
Has anyone got this library working on RN 0.71 or 0.72? |
Yes, i Have. I suspect the .env file location might be the issue for you. After the RN i need to change my ENVFILES location in the podfile PS: I am using NX monorepo so my location of .env might look different from yours.
|
I will test this, but unfortunately this is not the complete solution, since I experience the same issue on both iOS and Android. Your suggestion only applies to iOS. |
Ok folks, it seems like this was completely an issue due to a silly mistake on my side. I will post it here, maybe someone has done the same mistake. I had named the react-native config file incorrectly to Case closed. |
But why have you closed this issue if a bunch of people is facing the same problem? |
The same here |
i had the same problem, can someone help me. |
This worked for me! In your proguard-rules.pro add
Note |
it not work for me. Please help me! |
work perfect on Xcode version 15.3 |
If the config is returning undefined in IOS try this, it worked for me For IOS: |
Thanks |
react-native: 0.71.13
react-native-config: 1.5.1
After upgrading react-native from 0.70.9 to 0.71.13, the config is empty.
This is what I get when I log config:
Output:
{"dependencies": {}}
I have tried downgrading to version 1.4 and 1.3, but that does not help.
I have set this in the pre-actions without success:
Note that it worked fine on RN 0.70.9.
Any help would be appreciated.
Update: I am having the exact same issue on Android
The text was updated successfully, but these errors were encountered: