Jose Luis Leon 5decbcaa7b
Fix named import (#466)
The types definitions (`index.d.ts`) explicitly says that the library can be used with a default import or a named import:
```
import Config from "react-native-config";
import { Config } from "react-native-config";
```
However, in the `index.js` file there's no named export, only the default export is available
2020-07-07 17:32:34 -03:00

10 lines
321 B
JavaScript

'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
import { NativeModules } from 'react-native';
export const Config = NativeModules.ReactNativeConfigModule || {}
export default Config;