Splash.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import React from 'react';
  2. import { ImageBackground, View, StyleSheet, Image, Text } from 'react-native';
  3. const Splash = () => {
  4. return(
  5. <ImageBackground style={styles.container} source={require('../assets/cover.jpg')}>
  6. <View style={[styles.brandContainer, styles.center]}>
  7. <Image style={styles.logo} source={require('../assets/logo-white.png')}></Image>
  8. <Text style={[styles.center, styles.title]} >Click & Push</Text>
  9. </View>
  10. </ImageBackground>)
  11. }
  12. const styles = StyleSheet.create({
  13. container: {
  14. flex: 1,
  15. flexDirection: 'column',
  16. resizeMode: 'cover',
  17. justifyContent: 'space-between'
  18. },
  19. center: {
  20. alignItems: 'center',
  21. justifyContent: 'center',
  22. },
  23. brandContainer: {
  24. flex: 2,
  25. marginVertical: 50,
  26. flexDirection: 'column',
  27. justifyContent: 'space-between'
  28. },
  29. title: {
  30. fontFamily: 'RacingSansOne-Regular',
  31. marginTop: 30,
  32. color: 'white',
  33. fontSize: 30
  34. },
  35. })
  36. export default Splash;