lugg / react-native-config

Bring some 12 factor love to your mobile apps!
MIT License
4.75k stars 651 forks source link

ios undefined problem #800

Open gkqkehs7 opened 2 weeks ago

gkqkehs7 commented 2 weeks ago

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.

anderskleve commented 2 weeks ago

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!

raza-jamil-reckon commented 1 week ago

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 getConstants function which gives the values when I run it but seems wrong. Tried different versions of react-native-config but no luck.