Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
react-native-ultimate-config
Advanced tools
The ultimate config you ever need for your react-native app
The ultimate config you ever need for your react-native app
Project generated with https://github.com/brodybits/create-react-native-module
npm | yarn |
---|---|
npm install react-native-ultimate-config | yarn add react-native-ultimate-config |
npm | yarn |
---|---|
npm run rnuc <env file> | yarn rnuc <env file> |
react-native run-{ios,android}
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.
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 |
| |
|-------------------------------------------------------|
| | |
| objective-c | java |
| | |
|-------------------------------------------------------|
| | |
| build settings | AndroidManifest.xml |
| infoplist | build.gradle |
| | |
|-------------------------------------------------------|
project | comparison |
---|---|
react-native-dotenv | Javascript only. Does not allow to configure native counterpart of the app |
react-native-config | Allows configuring native and javascript |
FAQs
Config that works
The npm package react-native-ultimate-config receives a total of 3,337 weekly downloads. As such, react-native-ultimate-config popularity was classified as popular.
We found that react-native-ultimate-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.