2.9.0-beta.1 • Published 11 months ago

@app-config/react-native v2.9.0-beta.1

Weekly downloads
255
License
MPL-2.0
Repository
github
Last release
11 months ago

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!

2.9.0-beta.1

11 months ago

2.8.7

1 year ago

2.8.6

1 year ago

2.8.5

2 years ago

2.8.3

2 years ago

2.8.4

2 years ago

2.8.2

2 years ago

2.8.1

3 years ago

3.0.0-alpha.6

3 years ago

2.8.0

3 years ago

2.7.2

3 years ago

2.7.1

3 years ago

2.7.0

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.5.2

3 years ago

2.5.0

3 years ago

2.5.1

3 years ago

3.0.0-alpha.4

3 years ago

2.4.6

3 years ago

3.0.0-alpha.3

3 years ago

3.0.0-alpha.1

3 years ago

3.0.0-alpha.2

3 years ago

2.4.5

3 years ago

2.4.4

3 years ago

2.4.3

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.4.2

3 years ago

2.3.4

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.8

3 years ago

2.1.6

3 years ago

2.1.7

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago