App.js 590 B

123456789101112131415161718192021222324
  1. import React, { Component } from 'react';
  2. import { StyleSheet, Text, View } from 'react-native';
  3. const styles = StyleSheet.create({
  4. container: {
  5. flex: 1,
  6. backgroundColor: '#fa4',
  7. alignItems: 'center',
  8. justifyContent: 'center',
  9. },
  10. });
  11. export default class App extends Component {
  12. render() {
  13. return (
  14. <View style={styles.container}>
  15. <Text>Open up App.js to start working on your app!</Text>
  16. <Text>Changes you make will automatically reload.</Text>
  17. <Text>Shake your phone to open the developer menu.</Text>
  18. </View>
  19. );
  20. }
  21. }