2016-02-22 13:06:06 -08:00

40 lines
650 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}>
FOO={Config.FOO}
</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);