WelcomePage.js 623 B

1234567891011121314151617181920212223242526272829
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View } from "react-native"
  3. import NavigationUtil from "../navigator/NavigationUtil"
  4. export default class WelcomePage extends Component {
  5. componentDidMount() {
  6. this.timer = setTimeout(() => {
  7. // NavigationUtil.resetToHomePage(this.props)
  8. }, 5000)
  9. }
  10. componentWillMount() {
  11. this.timer && clearTimeout(this.timer)
  12. }
  13. render() {
  14. return (
  15. <View style={styles.container}>
  16. <Text>
  17. WelcomePage</Text>
  18. </View>
  19. )
  20. }
  21. }
  22. const styles = StyleSheet.create({
  23. container: {
  24. flex: 1,
  25. justifyContent: "center",
  26. alignItems: "center"
  27. }
  28. })