Read environment vairable from .env file
Usage :
filename: .env
API_KEY=lorem
ANOTHER_CONFIG=foobar
use it directly in RN js code:
import { API_KEY, ANOTHER_CONFIG } from 'react-native-dotenv'
ApiClient.init(API_KEY, ANOTHER_CONFIG)
Pass Bash variable to RN js code
Same as react-native-dotenv but require to write code in Object-C and Java
No good: ios only need to configure setting in Xcode
mention a good reference: migrating-ios-app-through-multiple-environments
#To read:
Automated environment management in React Native - iOS