import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import React from 'react'; import { Image, ScrollView, StyleSheet, Text, TouchableOpacity, useWindowDimensions, View, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import RU from 'screens/../../assets/bootsplash/RU.png'; import UZ from 'screens/../../assets/bootsplash/UZ.png'; import Logo from 'screens/../../assets/bootsplash/logo_512.png'; import { RootStackParamList } from 'types/types'; type NavigationProp = NativeStackNavigationProp; const SelectLangPage = ({ onSelectLang, }: { onSelectLang: (lang: 'uz' | 'ru') => void; }) => { const { width } = useWindowDimensions(); const isSmallScreen = width < 380; return ( CPOST Tilni tanlang{' '} (Выберите язык) onSelectLang('uz')} style={styles.button} > O'zbek tili onSelectLang('ru')} style={styles.button} > Русский язык ); }; export default SelectLangPage; const styles = StyleSheet.create({ container: { flex: 1, paddingHorizontal: 20, margin: 5, borderRadius: 12, }, scrollContent: { flex: 1, justifyContent: 'center', alignItems: 'center', }, innerContainer: { width: '100%', paddingHorizontal: 10, }, logoWrapper: { alignItems: 'center', marginBottom: 20, }, logoImage: { resizeMode: 'stretch', }, logoText: { fontWeight: '500', marginTop: 4, color: '#28A7E8', }, title: { fontWeight: '500', textAlign: 'center', color: '#28A7E8', marginBottom: 20, }, button: { backgroundColor: '#28A7E8', height: 56, borderRadius: 6, flexDirection: 'row', alignItems: 'center', gap: 10, paddingHorizontal: 16, }, btnText: { color: '#fff', fontSize: 18, }, btnContainer: { gap: 16, }, flag: { width: 30, height: 30, resizeMode: 'cover', }, });