DEV Community 👩‍💻👨‍💻

Discussion on: React Native: Multiple Environments Setup (Schemas/Flavors)

Collapse
gamble2020 profile image
gamble2020 • Edited on

As per the documentation for react-native-config the line...

cp "${PROJECT_DIR}/../.env.development" "${PROJECT_DIR}/../.env.development"

should be...

cp "${PROJECT_DIR}/../.env.development" "${PROJECT_DIR}/../.env"

Because...react-native-config reads the .env file by default.