lugg / react-native-config

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

is it possible to pass params but not set ENVFILE when run assemble release #786

Open woowalker opened 5 months ago

woowalker commented 5 months ago

what i konw is that i can change .env file through

SET ENVFILE=.env.demo && gradlew assembleRelease

but i don`t konw it is possible to pass custom params to rnconfig like

SET REACT_APP_COOKIE=abc && gradlew assembleRelease

and then get config use

import Config from 'react-native-config'; console.log(Config.REACT_APP_COOKIE)

ajayranga commented 5 months ago

+1