Skip to content

What is the solution to pass environment variables to the web bundle? #2158

Discussion options

You must be logged in to vote

React native config does not support web yet and needs some workaround lugg/react-native-config#225.
react-native-dotenv should work though. Did you check this issue? goatandsheep/react-native-dotenv#91 Also, can you confirm the babel setup as mentioned here? https://github.com/goatandsheep/react-native-dotenv#usage

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iuliiadefault
Comment options

Answer selected by iuliiadefault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants