Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
woowalker opened this issue Dec 19, 2023 · 1 comment

Comments

@woowalker
Copy link

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
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants