react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. */
  5. 'use strict';
  6. import React, {
  7. AppRegistry,
  8. Component,
  9. StyleSheet,
  10. Text,
  11. View
  12. } from 'react-native';
  13. class exampleRedux extends Component {
  14. render() {
  15. return (
  16. <View style={styles.container}>
  17. <Text style={styles.welcome}>
  18. Coming Soon
  19. </Text>
  20. </View>
  21. );
  22. }
  23. }
  24. const styles = StyleSheet.create({
  25. container: {
  26. flex: 1,
  27. justifyContent: 'center',
  28. alignItems: 'center',
  29. backgroundColor: '#F5FCFF',
  30. },
  31. welcome: {
  32. fontSize: 20,
  33. textAlign: 'center',
  34. margin: 10,
  35. },
  36. instructions: {
  37. textAlign: 'center',
  38. color: '#333333',
  39. marginBottom: 5,
  40. },
  41. });
  42. AppRegistry.registerComponent('exampleRedux', () => exampleRedux);