DEV Community

Ajmal Hasan
Ajmal Hasan

Posted on

8

React Native Config Setup/Usage for multiple environment setup

When it comes to configuration/environment management in React Native, one popular library that can be useful is react-native-config. This library allows you to manage configuration variables and environment-specific settings in your React Native project.

a) Follow this link for integration in Android part.
React Native Config Integration & Usage Android

b) Follow this link for integration in iOS from point 5 to 8
React Native Config Integration & Usage iOS

Note:
For iOS Usage run in terminal
i) killall node
ii) npm start -- --reset-cache
iii) yarn ios:dev or yarn android:prod

c) Usage:

import config from 'react-native-config';

let envVar = config.APP_CONFIG
Enter fullscreen mode Exit fullscreen mode

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)