Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@oziks
Last active August 3, 2018 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oziks/caf70b16b0eefa3b49e3e86898a78c0f to your computer and use it in GitHub Desktop.
Save oziks/caf70b16b0eefa3b49e3e86898a78c0f to your computer and use it in GitHub Desktop.
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