React Native Config
Fiscal Host: Open Source Collective
Bring some 12 factor love to your mobile apps!
Contribute
Become a financial contributor.
Financial Contributions
React Native Config is all of us
Our contributors 1
Thank you for supporting React Native Config.
About
react-native-config brings 12-factor config to React Native apps. It's downloaded over 350,000 times a week on npm.
Drop your settings in a .env file and read them from JavaScript — no rebuild scripts, no hand-rolled native glue:
import Config from "react-native-config"; Config.API_URL; // 'https://myapi.com'
The same values are also exposed to the native side of your app — BuildConfig on Android, Info.plist and Build Settings on iOS and macOS — so they can be used for things JavaScript never sees, like app names, bundle identifiers, and API keys consumed by native SDKs.
What it supports
- iOS, Android, macOS and Windows
- The New Architecture, with autolinked TurboModule bindings
- Multiple environments — separate .env files per scheme, flavor, or build type
- TypeScript declarations for your own config keys
- Jest mocking for tests
Why sponsor
react-native-config is MIT-licensed and free to use, and it sits in the build pipeline of hundreds of thousands of app builds every week. That position is also the work: every React Native release can shift how autolinking, codegen, and the Gradle and Xcode build phases behave, and the library has to keep up on four platforms before your builds break.
Sponsorship funds that maintenance — keeping compatibility current with new React Native versions, triaging issues, and reviewing contributions. If this library saves your team time, please consider backing it.