Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 586 Bytes

README.MD

File metadata and controls

27 lines (23 loc) · 586 Bytes

react-native-splash-screen

Splash screen component for react native.

usage:

import RnSplash from 'react-native-splash-screen';
import splashImg from 'images/splash.jpg';

export default class extends React.Component {
  static navigationOptions = {
    header: null
  };

  _onLoad = e => {
    const {navigate} = this.props.navigation;
    navigate('Home')
  };

  render() {
    return (
      <RnSplash onLoad={this._onLoad} duration={{ stand:1000, move: 300 }}>
        <Image source={splashImg} style={{width: 375, height: 667}}/>
      </RnSplash>
    );
  }
}