React-native-config: Cannot read from env in Info.plist but it works in js code. Someone helps me?

Created on 16 Jul 2019  路  2Comments  路  Source: luggit/react-native-config

React native: 0.60.3
Platform: IOS.
I cannot read env in Info.plist with __RN_CONFIG_.... anymore.
Could anyone help me set up this module in the right way on IOS.

Most helpful comment

I'm sure you guys have figured it out, but in case anyone else comes across this question, the answer is to use $(CONFIG_VARIABLE_NAME).

All 2 comments

@suupham2506 how did you fix it? the doc is not talking about the prefix _RN_CONFIG_ so I'm not sure you need it anymore. However, I still cannot use it in my info.plist, I'm trying to change the bundle id per env

I'm sure you guys have figured it out, but in case anyone else comes across this question, the answer is to use $(CONFIG_VARIABLE_NAME).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joncursi picture joncursi  路  4Comments

jstlaurent picture jstlaurent  路  4Comments

francisrod01 picture francisrod01  路  3Comments

sonlexqt picture sonlexqt  路  4Comments

himanshu-satija picture himanshu-satija  路  3Comments