Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

react-native-config-jsi

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-config-jsi

⚡️ Fast JSI-based library to access .env variables natively with C++ performance.

latest
Source
npmnpm
Version
0.1.10
Version published
Maintainers
1
Created
Source

🚀 react-native-config-jsi

Fast JSI-based React Native library to access .env variables natively with C++ performance.

📦 Install

To install the library, use either npm or yarn:

npm install react-native-config-jsi

yarn add react-native-config-jsi

🔧 Quick Setup

  • Create .env at project root:
#EXAMPLE
API_KEY=your_api_key
APP_NAME=MyAwesomeApp
...
  • iOS:
cd ios && pod install

Add to Xcode → Target → Build Phases → + New Run Script Phase:

bash "${SRCROOT}/../node_modules/react-native-config-jsi/src/scripts/generate.sh"

🚀 Usage

⚠️ Note: After updating .env, rebuild or restart your app to apply changes.

import { RNConfig } from "react-native-config-jsi";

const apiKey = RNConfig.get("API_KEY");
console.log("API_KEY:", apiKey);

⚡ Highlights

  • 🔥 Ultra-fast JSI native access
  • ⚙️ Built in C++
  • 🧩 Synchronous API
  • 🪶 No extra dependencies

📜 License

MIT

🎉 Enjoy using react-native-config-jsi! 🚀

Keywords

react-native

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts