mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-28 15:00:45 +00:00
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
10 lines
321 B
JavaScript
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;
|