react-native-ultimate-config
Configure all levels of your react-native app with a single file
This library exposes configuration from env files to all levels of the projects:
- javascript
- native code
- native build configuration
- ios
- android
- build config
- string resources
- project.ext
Table of contents
- Mission
- Quickstart Guide
- API
- Competitors
Mission
React-Native brings together 3 platforms: ios, android, javascript each of
which have different conventions and approaches how to manage environment
settings.
|-------------------------------------------------------|
| |
| javascript |
| |
|-------------------------------------------------------|
| | |
| objective-c | java |
| | |
|-------------------------------------------------------|
| | |
| xcode project | AndroidManifest.xml |
| | build.gradle |
| | |
|-------------------------------------------------------|
react-native-ultimate-config offers a way to configure your projects on all
levels and keep configuration data separate from code or project files:
api urls, app names, feature flags.
Anything you would typically put into environment can now be loaded from a
separate file.
Consumption of the environment should be happening with explicit command
without too much magic and complex integration steps.
Competitors
project | comparison |
---|
react-native-config | Allows configuring native and javascript but project seems to be abandoned. |
react-native-dotenv | Javascript only. Does not allow configure native counterpart of the app. |