maxkomarychev / react-native-ultimate-config

Config that works
MIT License
261 stars 31 forks source link

initialize env from code ? #92

Closed Afsarunnisa closed 1 year ago

Afsarunnisa commented 2 years ago

is there any way to initiate env file from code ? means we need to change env files based on user selection in testing.

maxkomarychev commented 1 year ago

This is not supported and will likely be not supported.

Core concept of this library is to propagate configurations from native side. Many of those settings are injected at build time and one can not change them from a built product. Doing this kind of a shortcut is not something I would want to support. Moreover - if a configuration is ONLY held within javascript then there is no need to employ special library :)

Thanks!