-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to access from shell scripts #93
Comments
Can you give an example of how it used to work with |
can you please elaborate on this a bit? can you suggest exact copy which could help to avoid this confusion? Feel free to submit pr too =) |
I don't recall where I got this from however, it's not in their README - I think maybe I plucked it from this thread. I just need to know the recommended way to access the settings from this package's "current" config in a shell script. |
Ok. While I do not natively support this it is still possible to simply If you're using YAML then it's going to be tricky but using xcconfig maybe an acceptable workaround. |
If your just trying to add secrets from yoour bash profile you could try this:
|
I'm migrating from react-native-config and trying to access some of the environment variables from a shell script after initiating the rnuc utility. I have this working like this which is an adjustment from how I had it working from react-native-config:
But is there a better/simpler recommended way? I cant see it in the docs.
What does the rnuc utility write to the android project by the way? Whatever it is seems to disappear after running
yarn
so I've put apostinstall
script in mypackage.json
to runyarn rnuc .env
- again if that's the best way perhaps it could be added to the readme.The text was updated successfully, but these errors were encountered: