bug fixed complated

This commit is contained in:
Samandar Turgunboyev
2026-03-02 15:14:52 +05:00
parent ab363ca3b9
commit 4d5cc84850
6 changed files with 23 additions and 27 deletions

View File

@@ -9,12 +9,14 @@ import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { Animated, Easing, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
export default function TabsLayout() {
const { isDark } = useTheme();
const { t } = useTranslation();
const { setShowFilter, setStep } = useHomeStore();
const rotateAnim = useRef(new Animated.Value(0)).current;
const insets = useSafeAreaInsets();
useEffect(() => {
Animated.loop(
@@ -54,7 +56,7 @@ export default function TabsLayout() {
position: 'absolute',
left: 16,
right: 16,
bottom: 4,
bottom: 8,
height: 70,
paddingTop: 8,
paddingBottom: 12,

View File

@@ -7,33 +7,23 @@ import { ProfileDataProvider } from '@/screens/profile/lib/ProfileDataContext';
import { Stack } from 'expo-router';
import { StatusBar } from 'expo-status-bar';
import { I18nextProvider } from 'react-i18next';
import { View } from 'react-native';
import 'react-native-reanimated';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { SafeAreaView } from 'react-native-safe-area-context';
import ToastManager from "toastify-react-native";
function AppContent() {
useNotifications();
const insets = useSafeAreaInsets();
return (
<>
{/* iOS status bar fon */}
<View
style={{
height: insets.top,
backgroundColor: '#000',
}}
/>
{/* StatusBar */}
<SafeAreaView style={{ flex: 1 }}>
<StatusBar
style="light"
backgroundColor="#000" // Android
style="dark"
backgroundColor="#fff"
translucent={false}
/>
<Stack screenOptions={{ headerShown: false }} />
</>
</SafeAreaView>
);
}
export default function RootLayout() {

View File

@@ -272,7 +272,6 @@ export default function ProductList({ query }: Props) {
}
const styles = StyleSheet.create({
listContainer: { gap: 0, paddingBottom: 20 },
card: {
borderRadius: 16,
overflow: 'hidden',

View File

@@ -185,9 +185,11 @@ export default function CreateAdsScreens() {
onSuccess: async (res, variables) => {
if (variables.paymentType === 'payme') {
await Linking.openURL(res.data.url);
router.push('/(dashboard)/announcements');
bottomSheetModalRef.current?.dismiss();
router.push('/profile/my-ads');
} else {
router.push('/(dashboard)/announcements');
bottomSheetModalRef.current?.dismiss();
router.push('/profile/my-ads')
}
},
onError: (err: AxiosError) => {

View File

@@ -234,10 +234,10 @@ const StepThree = forwardRef(({ formData, updateForm, data }: StepProps, ref) =>
</Text>
</TouchableOpacity>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
<Text style={[styles.sectionTitle, { color: theme.text }]}>
{t('Reklama joylashtirish kompaniyasi')}
</Text>
<Text style={[styles.sectionTitle, { color: theme.text }]}>
{t('Reklama joylashtirish kompaniyasi')}
</Text>
<View style={{ flexDirection: 'column', justifyContent: 'space-between', alignItems: 'flex-end', marginBottom: 10 }}>
<TouchableOpacity
style={[
styles.selectAllButton,
@@ -330,7 +330,7 @@ const styles = StyleSheet.create({
marginBottom: 12,
},
pickerText: { fontSize: 16 },
sectionTitle: { fontSize: 16, fontWeight: '700', marginVertical: 12 },
sectionTitle: { fontSize: 16, fontWeight: '700', marginVertical: 12, },
companyItem: {
width: 55,
height: 55,

View File

@@ -39,11 +39,14 @@ export default function EServicesCategoryScreen() {
const handleOpenBrowser = async (fileUrl: string) => {
try {
await WebBrowser.openBrowserAsync(fileUrl);
await WebBrowser.openBrowserAsync(fileUrl, {
dismissButtonStyle: 'close',
presentationStyle: WebBrowser.WebBrowserPresentationStyle.FULL_SCREEN,
});
} catch (error) {
Toast.error(t("Xatolik yuz berdi"));
}
};
}
const onRefresh = async () => {
setRefreshing(true);