What is the solution to pass environment variables to the web bundle? #2158
Answered
by
intergalacticspacehighway
iuliiadefault
asked this question in
Q&A
-
Is there any ways to pass .env variables to the bundle? react-native-config and react-native-dotenv seem to not working. |
Beta Was this translation helpful? Give feedback.
Answered by
intergalacticspacehighway
Nov 2, 2021
Replies: 1 comment 1 reply
-
React native config does not support web yet and needs some workaround lugg/react-native-config#225. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
iuliiadefault
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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