import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View, useWindowDimensions, } from 'react-native'; import Banner from 'screens/../../assets/bootsplash/Step_1.png'; import ArrowRight from 'svg/ArrowRight'; const FirstStep = ({ onNext, lang, }: { onNext: () => void; lang: 'uz' | 'ru'; }) => { const { width: screenWidth, height: screenHeight } = useWindowDimensions(); const texts = { uz: { title: 'CPOST', description: 'Yuklarni kuzatish va yetkazib berishni endi bir joydan boshqaring.', }, ru: { title: 'CPOST', description: 'Теперь управляйте отслеживанием и доставкой грузов в одном месте.', }, }; const scale = screenWidth < 360 ? 0.95 : 0.95; return ( {texts[lang].title} {texts[lang].description} ); }; const styles = StyleSheet.create({ container: { flex: 1, position: 'relative', }, banner: { zIndex: 20, backgroundColor: '#DBFFFF', borderBottomRightRadius: 40, borderBottomLeftRadius: 40, overflow: 'hidden', justifyContent: 'flex-end', alignItems: 'flex-end', }, bannerImage: { position: 'absolute', right: 0, bottom: 0, zIndex: -1, height: '100%', }, textContainer: { position: 'absolute', zIndex: 20, }, title: { color: '#fff', fontWeight: '500', }, text: { color: '#eeee', fontWeight: '400', }, nextButtonWrapper: { position: 'absolute', zIndex: 20, }, button: { backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, paginationWrapper: { position: 'absolute', zIndex: 20, }, activeDot: { backgroundColor: '#fff', borderRadius: 20, }, inactiveDot: { backgroundColor: 'rgba(255,255,255, 0.4)', borderRadius: 20, }, }); export default FirstStep;