Skip to content
R

React Native Config

Bring some 12 factor love to your mobile apps!

by react-native-configFree

#626in Utilities
0In stores

Description

react-native-config brings 12-factor style configuration to React Native apps, so you can keep config variables in a .env file and read them…

Highlights

  • Config variables from a .env file
  • iOS, Android, macOS and Windows support
  • Autolinked on React Native 0.60 and later
  • TypeScript declarations for variables
  • Works with the New Architecture

Ratings & Reviews

No ratings yet

Be the first to rate React Native Config.

People also visit

R

React Native Sensitive Info

React Native secure storage, rebuilt

Utilities
Launch
R

react-native-version-info

Access native app version in React Native

UI Libraries
Launch
R

react-native-device-info

Device information for iOS and Android

UI Libraries
Launch
R

react-native-version-number

Access app version inside React Native

UI Libraries
Launch
A

Arkana

Use dotenv files for Android and iOS projects

Utilities
Launch
R

React Native Inappbrowser

InAppBrowser for React Native (Android & iOS)

Utilities
Launch

React Native Config FAQ

What does react-native-config do?

It lets a React Native app read config variables from a .env file, following 12-factor practices.

Should I put secrets in .env?

No. The readme says the library does not obfuscate or encrypt secrets, and mobile app secrets can be reverse engineered.

How do I install it?

Install it from npm, then rebuild the app. On React Native 0.60 and later it is autolinked, and on iOS you install the pod first.

Which React Native version does it need?

Version 1.6.0 and later need React Native 0.74 or higher, according to the readme.

Does it support Windows?

Yes. The readme says it works with react-native-windows, with autolinking from version 0.63.

How is it supported?

The readme asks for sponsorship on Open Collective to fund the maintenance work.

What are the best React Native Config alternatives?

Popular alternatives to React Native Config include React Native Sensitive Info, Arkana and React Native Inappbrowser. See all React Native Config alternatives

Developer Stuff

Badges