maxkomarychev / react-native-ultimate-config

Config that works
MIT License
262 stars 31 forks source link

Values only accessable in debug mode (without flavors)???? #78

Closed zoobibackups closed 2 years ago

zoobibackups commented 3 years ago

My .env file

APPLICATION_ID=my_app_id_here
NAME=app_name_here

then i run this command: yarn rnuc .env

Then in my react-native app i access the values as:

import config from 'react-native-ultimate-config'

config.NAME // access it here

But these values are only accessable in debug mode

In release mode its undefined??????

maxkomarychev commented 3 years ago

hi @zoobibackups

please provide more context and exact steps/commands on how do you run this in debug mode and in release.

thanks

zoobibackups commented 3 years ago

hi @zoobibackups

please provide more context and exact steps/commands on how do you run this in debug mode and in release.

thanks

I followed the (configuration)steps mentioned in documentation and it work in debug mode.

react-native run-androd to run the app and values are accessable but when i generate a release apk the values are undefined.

maxkomarychev commented 3 years ago

how do you create release apk? do you do this locally or on some CI service? can you please provide reproducible example ?

zoobibackups commented 2 years ago

how do you create release apk? do you do this locally or on some CI service? can you please provide reproducible example ?

Its working now, i don't know what was the issue but its working now. Thanks

chubby-fat commented 1 year ago

Mine is the same as you, how to solve it ?