UNPKG

@bam.tech/react-native-config

Version:

Expose config variables to React Native apps

10 lines (7 loc) 321 B
'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;