import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View, useWindowDimensions, } from 'react-native'; import Banner from 'screens/../../assets/bootsplash/Step_2.png'; import ArrowRight from 'svg/ArrowRight'; const SecondStep = ({ onNext, lang, }: { onNext: () => void; lang: 'uz' | 'ru'; }) => { const texts = { uz: { title: 'Yetkazib berishni real vaqtda kuzating', description: 'Har bir zakazingizning statusini kuzatib boring. Qayerda va qaysi bosqichda ekanini bilib oling.', }, ru: { title: 'Отслеживайте доставку в режиме реального времени', description: 'Следите за статусом каждого вашего заказа. Где и какой Узнайте, что находится на этапе.', }, }; const { width: screenWidth, height: screenHeight } = useWindowDimensions(); const scale = screenWidth < 360 ? 0.95 : 0.95; return ( {texts[lang].title} {texts[lang].description} ); }; const styles = StyleSheet.create({ container: { flex: 1, position: 'relative', backgroundColor: '#28A7E8', }, banner: { zIndex: 20, backgroundColor: '#DBFFFF', overflow: 'hidden', }, bannerImage: { position: 'absolute', bottom: 0, right: 0, zIndex: -1, }, 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, flexDirection: 'row', alignItems: 'center', }, activeDot: { backgroundColor: '#fff', borderRadius: 20, }, inactiveDot: { backgroundColor: 'rgba(255,255,255,0.4)', borderRadius: 20, }, }); export default SecondStep;