Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-config

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-config - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "react-native-config",
"version": "0.0.1",
"version": "0.0.2",
"description": "Expose config variables to React Native apps",

@@ -5,0 +5,0 @@ "keywords": ["env", "config", "config-var", "react-native", "android", "ios", "12factor"],

@@ -40,4 +40,9 @@ # Config variables for React Native apps

Rnpm is not working with this at the moment. So you'll need to add the `.xcodeproj` as an external library, and add the `.a` file manually to "Link Binary with Libraries". [Similar to this](https://github.com/marcshilling/react-native-image-picker#ios-1).
Link the library with [rnpm](https://github.com/rnpm/rnpm):
```
$ rnpm link react-native-config
```
### Android

@@ -48,7 +53,7 @@

```
include ':react-native-android-config'
include ':react-native-config'
include ':app'
project(':react-native-android-config').projectDir = new File(rootProject.projectDir,
'../node_modules/react-native-android-config/android')
project(':react-native-config').projectDir = new File(rootProject.projectDir,
'../node_modules/react-native-config/android')
```

@@ -59,6 +64,6 @@

```
// first line
// 2nd line, add a new apply:
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
// down below
// down below, add new compile:
dependencies {

@@ -73,3 +78,3 @@ ...

```java
import com.lugg.ReactConfig.ReactConfigPackage; // add import
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage; // add import

@@ -76,0 +81,0 @@ public class MainActivity extends ReactActivity {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc