You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using react-native-config from the command line with the ENVFILE=.env.xxx syntax doesn't change the config available in the app. The workaround listed in #692 fixes the problem, though that issue suggests the workaround hasn't always been required.
Haven't done any setup in Xcode with schemes or anything. Just trying it out via the command line. From looking at the documentation this should work, so raising an issue.
Example commands used (Mac shell):
ENVFILE=.env.xxx npx react-native run-ios (wrong config in app)
touch node_modules/react-native-config/ios/ReactNativeConfig/BuildDotenvConfig.rb
ENVFILE=.env.xxx npx react-native run-ios (correct config in app)
Notable versions in the environment are:
react-native 0.69.5
react-native-config 1.4.11
Happy to provide any other details if useful.
Parkjunwu, frederikmartin, Twinbird24, konstantindt, jliukai and 1 more