🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-native-ultimate-config

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-ultimate-config

Config that works

6.0.1
latest
Source
npm
Version published
Weekly downloads
2.9K
-11.18%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-ultimate-config

Config that works

NPM npm npm

Project generated with https://github.com/brodybits/create-react-native-module

Suport of gradle

react-native-ultimate-configgradle
^3<=6
>47

TL;DR usage

  • install
    npmyarn
    npm install react-native-ultimate-configyarn add react-native-ultimate-config
  • one-off setup for native projects
  • initialize env
    npmyarn
    npm run rnuc <env file>yarn rnuc <env file>
  • build! react-native run-{ios,android}

☝❗Approach to versioning and breaking changes

This library is using semver and heavily relying on codegeneration. Many new features and/or bugfixes will require these files to be regenerated. Changes to codegenerated files will not be considered breaking unless they affect behavior of API or CLI.

Therefore every time this library is updated all files MUST be regenerated using rnuc command.

Table of contents

Features

Mission

React-Native brings together 3 platforms: ios, android, javascript each of which have different conventions and approaches how to manage environment settings.

A typical app is usually operating in some environment defined by server urls various api keys or feature flags. When dealing with react-native such things often need to exist in 3 places: ios, android and js code. Even managing things as simple as application name or bundle id needs to be done in 2 places: Info.plist and AndroidManifest.xml

react-native-ultimate-config tries to reduce friction in managing these things by abstracting away from nuances of native projects.

With react-native-ultimate-config it is possible to consume variables in every place of a typical react-native app:

  • javascript
  • native code
    • java
    • objective-c
  • native build configuration
    • ios
      • build settings
      • infoplist
    • android
      • build config
      • string resources
      • project.ext
|-------------------------------------------------------|
|                                                       |
|                     javascript                        |
|                                                       |
|-------------------------------------------------------|
|                          |                            |
|       objective-c        |           java             |
|                          |                            |
|-------------------------------------------------------|
|                          |                            |
|      build settings      |     AndroidManifest.xml    |
|         infoplist        |        build.gradle        |
|                          |                            |
|-------------------------------------------------------|

Keywords

react-native

FAQs

Package last updated on 01 Sep 2023

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