react-native-navigation的迁移库

index.android.js 1022B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. Welcome to React Native!
  19. </Text>
  20. <Text style={styles.instructions}>
  21. To get started, edit index.android.js
  22. </Text>
  23. <Text style={styles.instructions}>
  24. Shake or press menu button for dev menu
  25. </Text>
  26. </View>
  27. );
  28. }
  29. }
  30. const styles = StyleSheet.create({
  31. container: {
  32. flex: 1,
  33. justifyContent: 'center',
  34. alignItems: 'center',
  35. backgroundColor: '#F5FCFF',
  36. },
  37. welcome: {
  38. fontSize: 20,
  39. textAlign: 'center',
  40. margin: 10,
  41. },
  42. instructions: {
  43. textAlign: 'center',
  44. color: '#333333',
  45. marginBottom: 5,
  46. },
  47. });
  48. AppRegistry.registerComponent('exampleRedux', () => exampleRedux);