Splash.js 560 B

1234567891011121314151617181920
  1. import React, { PureComponent } from 'react';
  2. import { StyleSheet, Text, View, Image, TouchableOpacity, StatusBar, ToastAndroid, TextInput } from 'react-native';
  3. import BasePage from './BasePage';
  4. import SplashScreen from 'react-native-splash-screen';
  5. export default class Splash extends BasePage {
  6. render() {
  7. return (
  8. <View style={{ flex: 1 }}>
  9. <StatusBar backgroundColor={'transparent'} translucent={true} />
  10. </View>
  11. );
  12. }
  13. componentDidMount() {
  14. setTimeout(() => {
  15. SplashScreen.hide();
  16. this.clearPageToNext('Login');
  17. }, 3000);
  18. }
  19. }