41 lines
682 B
JavaScript
Raw Normal View History

2016-02-22 12:54:52 -08:00
'use strict';
2016-02-22 13:06:06 -08:00
2016-09-13 18:39:29 -07:00
import React, { Component } from 'react';
import {
2016-02-22 12:54:52 -08:00
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
2016-09-13 18:39:29 -07:00
import Config from 'react-native-config';
2016-02-22 13:06:06 -08:00
2016-02-22 12:54:52 -08:00
class Example extends Component {
render() {
return (
<View style={styles.container}>
2016-02-22 13:06:06 -08:00
<Text style={styles.text}>
2016-03-03 13:32:22 -08:00
API_URL={Config.API_URL}
2016-02-22 12:54:52 -08:00
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
2016-02-22 13:06:06 -08:00
text: {
2016-02-22 12:54:52 -08:00
fontSize: 20,
textAlign: 'center',
margin: 10,
},
});
AppRegistry.registerComponent('Example', () => Example);