Merge together the index files for easier testing

This commit is contained in:
William Cooke 2016-05-24 10:17:41 +01:00
parent 48126b36ac
commit 623a994ad0
4 changed files with 9 additions and 13 deletions

View File

@ -1,5 +0,0 @@
'use strict';
// bridge to the buildConfigField vars set in build.gradle, and exported via ReactConfig
var React = require('react-native');
module.exports = React.NativeModules.ReactNativeConfig;

View File

@ -1,5 +0,0 @@
'use strict';
// bridge to the config vars set in xcconfig and exposed via ReactNativeConfig.m
var React = require('react-native');
module.exports = React.NativeModules.ReactNativeConfig;

7
index.js Normal file
View File

@ -0,0 +1,7 @@
'use strict';
// Bridge to:
// Android: buildConfigField vars set in build.gradle, and exported via ReactConfig
// iOS: config vars set in xcconfig and exposed via ReactNativeConfig.m
var React = require('react-native');
module.exports = React.NativeModules.ReactNativeConfig;

View File

@ -1,6 +1,6 @@
{ {
"name": "react-native-config", "name": "react-native-config",
"version": "0.0.5", "version": "0.0.6",
"description": "Expose config variables to React Native apps", "description": "Expose config variables to React Native apps",
"keywords": ["env", "config", "config-var", "react-native", "android", "ios", "12factor"], "keywords": ["env", "config", "config-var", "react-native", "android", "ios", "12factor"],
"homepage": "https://github.com/luggg/react-native-config", "homepage": "https://github.com/luggg/react-native-config",
@ -8,8 +8,7 @@
"files": [ "files": [
"android/", "android/",
"ios/", "ios/",
"index.android.js", "index.js"
"index.ios.js"
], ],
"license": "MIT" "license": "MIT"
} }