mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-24 21:08:20 +00:00
40 lines
658 B
JavaScript
40 lines
658 B
JavaScript
'use strict';
|
|
|
|
import React, {
|
|
AppRegistry,
|
|
Component,
|
|
StyleSheet,
|
|
Text,
|
|
View
|
|
} from 'react-native';
|
|
|
|
import Config from 'react-native-config'
|
|
|
|
class Example extends Component {
|
|
render() {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.text}>
|
|
API_URL={Config.API_URL}
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: '#F5FCFF',
|
|
},
|
|
text: {
|
|
fontSize: 20,
|
|
textAlign: 'center',
|
|
margin: 10,
|
|
},
|
|
});
|
|
|
|
AppRegistry.registerComponent('Example', () => Example);
|