React Native Config

Bring some 12 factor love to your mobile apps!

Contribute


Become a financial contributor.

Financial Contributions

Recurring contribution
Individual Sponsor

Join us for $15.00 per month and support us

Starts at
$15 USD / month
Recurring contribution
Company/Agency Sponsor

Join us for $100.00 per month and support us

Starts at
$100 USD / month
One-time contribution
One Time Contribution

Join us for $10.00 and support us

Starts at
$10 USD
Custom contribution
Donation
Make a custom one-time or recurring contribution.

React Native Config is all of us

Our contributors 1

Thank you for supporting React Native Config.

Luan Curti Te...

Admin
Help keep this library maintained. If react-nat...

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.

Our team

Luan Curti Te...

Admin
Help keep this library maintained. If react-nat...