Last active
August 3, 2018 09:47
-
-
Save oziks/caf70b16b0eefa3b49e3e86898a78c0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { StyleSheet, View, Image, Text } from 'react-native'; | |
const styles = StyleSheet.create({ | |
loaderSplashView: { | |
backgroundColor: BSColors.navBar, | |
flex: 1, | |
flexDirection: 'column', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}, | |
messageContainer: { | |
marginTop: 100, | |
}, | |
messageSplash: { | |
marginTop: 30, | |
}, | |
logoContainer: { | |
flexDirection: 'row', | |
alignSelf: 'stretch', | |
paddingHorizontal: 60, | |
}, | |
logo: { | |
flex: 1, | |
height: 50, | |
}, | |
}); | |
export default class Splash extends Component { | |
render() { | |
return ( | |
<View style={styles.loaderSplashView}> | |
<View style={styles.logoContainer}> | |
<Image | |
style={styles.logo} | |
resizeMode={Image.resizeMode.contain} | |
source={require('./assets/logo/logo.png')} | |
/> | |
</View> | |
<View style={styles.messageContainer}> | |
<Text style={styles.messageSplash}>Chargement de votre compte</Text> | |
</View> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment