ignite-router-flux
Version:
Infinite Red's hot boilerplate for React Native.
52 lines (44 loc) • 1.55 kB
JavaScript
import React, { Component } from 'react'
import { ScrollView, Text, Image, View } from 'react-native'
import { connect } from 'react-redux'
import { bindActionCreators, AuthActions } from '../Redux/Actions'
import { Actions } from 'react-native-router-flux'
// Styles
import styles from './Styles/LaunchScreenStyles'
import { Images } from '../Themes'
class LaunchScreen extends Component {
constructor (props) {
super(props)
this.state = {
}
}
render () {
return (
<View style={styles.mainContainer}>
<Image source={Images.background} style={styles.backgroundImage} resizeMode='stretch' />
<ScrollView style={styles.container}>
<View style={styles.centered}>
<Image source={Images.launch} style={styles.logo} />
</View>
<View style={styles.section} >
<Image source={Images.ready} />
<Text style={styles.sectionText}>
This probably isn't what your app is going to look like. Unless your designer handed you this screen and, in that case, congrats! You're ready to ship. For everyone else, this is where you'll see a live preview of your fully functioning app using Ignite.
</Text>
</View>
</ScrollView>
</View>
)
}
}
const mapStateToProps = (state) => {
return {
auth: state.auth
}
}
const mapDispatchToProps = (dispatch) => {
return {
...bindActionCreators(AuthActions, dispatch)
}
}
export default connect(mapStateToProps, mapDispatchToProps)(LaunchScreen)