🚀 DAY 1 OF LAUNCH WEEK: Reachability for Ruby Now in Beta.Learn more →
Socket
Book a DemoInstallSign in
Socket

@app-config/react-native

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-config/react-native

React Native Metro transformer that loads your app-config values into bundles statically

latest
Source
npmnpm
Version
2.9.0-beta.3
Version published
Maintainers
2
Created
Source

React Native App Config Transformer

React Native Metro transformer that loads your app-config values into bundles statically.

Installation

1. Install @app-config/main

yarn add @app-config/main

Or, if you use NPM.

npm i @app-config/main

2. Install @app-config/react-native

yarn add -D @app-config/react-native

Or, if you use NPM.

npm i -D @app-config/react-native

3. Configure React Native bundler (Metro)

Merge the contents of your project's metro.config.js file with this config (or create the file if it does not exist already).

metro.config.js:

module.exports = {
  // Force cache reset in order to load app-config changes
  resetCache: true,
  transformer: {
    babelTransformerPath: require.resolve('@app-config/react-native'),
  },
};

Usage

As it is today, you will need to restart your React Native dev server every time you update app-config in order for the changes to take effect. We are working to see if hot reloading is possible. PR's welcome!

FAQs

Package last updated on 22 May 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