added notification
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
StyleSheet,
|
||||
Text,
|
||||
TouchableOpacity,
|
||||
useWindowDimensions,
|
||||
View,
|
||||
} from 'react-native';
|
||||
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||
@@ -21,9 +20,6 @@ type NavigationProp = NativeStackNavigationProp<RootStackParamList>;
|
||||
|
||||
const SelectLangPage = () => {
|
||||
const navigation = useNavigation<NavigationProp>();
|
||||
const { width } = useWindowDimensions();
|
||||
|
||||
const isSmallScreen = width < 380;
|
||||
|
||||
const selectLanguage = async (lang: 'uz' | 'ru') => {
|
||||
await changeLanguage(lang);
|
||||
@@ -45,24 +41,17 @@ const SelectLangPage = () => {
|
||||
style={[
|
||||
styles.logoImage,
|
||||
{
|
||||
width: isSmallScreen ? 120 : 250,
|
||||
height: isSmallScreen ? 120 : 200,
|
||||
borderRadius: 20000,
|
||||
width: 180,
|
||||
height: 180,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<Text
|
||||
style={[styles.logoText, { fontSize: isSmallScreen ? 24 : 40 }]}
|
||||
>
|
||||
CPOST
|
||||
</Text>
|
||||
<Text style={[styles.logoText, { fontSize: 24 }]}>CPOST</Text>
|
||||
</View>
|
||||
|
||||
<Text style={[styles.title, { fontSize: isSmallScreen ? 18 : 24 }]}>
|
||||
<Text style={[styles.title, { fontSize: 24 }]}>
|
||||
Tilni tanlang{' '}
|
||||
<Text
|
||||
style={[styles.title, { fontSize: isSmallScreen ? 14 : 18 }]}
|
||||
>
|
||||
<Text style={[styles.title, { fontSize: 18 }]}>
|
||||
(Выберите язык)
|
||||
</Text>
|
||||
</Text>
|
||||
@@ -118,11 +107,11 @@ const styles = StyleSheet.create({
|
||||
marginBottom: 8,
|
||||
},
|
||||
logoText: {
|
||||
fontWeight: '700',
|
||||
fontWeight: '500',
|
||||
color: '#28A7E8',
|
||||
},
|
||||
title: {
|
||||
fontWeight: '600',
|
||||
fontWeight: '500',
|
||||
textAlign: 'center',
|
||||
color: '#28A7E8',
|
||||
marginBottom: 24,
|
||||
|
||||
Reference in New Issue
Block a user