I'd like to get in my RN app a variable from the environment somehow.
I've tried few things like: MY_VAR=foo node...
this doesn't pass my JS file
I've tried using the --root
option in RN CLI but this doesn't give me a complete solution as when using xcode to actually run the code with the bundler, they run, hard-coded index.js
What are my options?
I need to know somehow - where this code runs - which for it, to my understanding i need to pass some environment variable somehoe