Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

OnboardingScreen.jsx 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import React from 'react';
  2. import { SafeAreaView, View, Text, TouchableOpacity, StyleSheet, Image } from 'react-native';
  3. import MaterialIcons from '@expo/vector-icons/MaterialIcons';
  4. const OnboardingScreen = ({navigation}) => {
  5. return (
  6. <SafeAreaView style={styles.safeArea}>
  7. <View style={{marginTop: 20}}>
  8. <Text style={styles.headText}>DILIGENT</Text>
  9. </View>
  10. <View style={styles.logo}>
  11. <Image style={{width: 300, height: 300}} source={require('../assets/images/diligent-logo.png')} />
  12. </View>
  13. <TouchableOpacity style={styles.button} onPress={() => navigation.navigate('Login')}>
  14. <Text style={styles.buttonText}>Let's begin</Text>
  15. <MaterialIcons name='arrow-forward-ios' size={22} color='#fff' />
  16. </TouchableOpacity>
  17. </SafeAreaView>
  18. )
  19. }
  20. const styles = StyleSheet.create({
  21. safeArea: {
  22. flex: 1,
  23. justifyContent: 'center',
  24. alignItems: 'center',
  25. backgroundColor: '#fff'
  26. },
  27. headText: {
  28. fontWeight: 'bold',
  29. fontSize: 30,
  30. color: '#20315f',
  31. fontFamily: 'poppins-semibold'
  32. },
  33. logo: {
  34. flex: 1,
  35. justifyContent: 'center',
  36. alignItems: 'center'
  37. },
  38. button: {
  39. backgroundColor: '#AD40AF',
  40. padding: 20,
  41. width: '90%',
  42. borderRadius: 10,
  43. marginBottom: 50,
  44. flexDirection: 'row',
  45. justifyContent: 'space-between'
  46. },
  47. buttonText: {
  48. color: 'white',
  49. fontSize: 18,
  50. textAlign: 'center',
  51. fontWeight: 'bold',
  52. fontFamily: 'poppins-regular'
  53. }
  54. })
  55. export default OnboardingScreen;