bug fixed
This commit is contained in:
@@ -3,19 +3,19 @@ import { useTheme } from "@/components/ThemeContext";
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { Image } from "expo-image";
|
||||
import { router } from "expo-router";
|
||||
import * as WebBrowser from "expo-web-browser";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
ActivityIndicator,
|
||||
FlatList,
|
||||
Text,
|
||||
ToastAndroid,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
View
|
||||
} from "react-native";
|
||||
import { RefreshControl } from "react-native-gesture-handler";
|
||||
import * as WebBrowser from "expo-web-browser";
|
||||
import { Toast } from "toastify-react-native";
|
||||
import { eservices_api } from "../lib/api";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const dark = {
|
||||
bg: "#0f172a",
|
||||
@@ -41,7 +41,7 @@ export default function EServicesCategoryScreen() {
|
||||
try {
|
||||
await WebBrowser.openBrowserAsync(fileUrl);
|
||||
} catch (error) {
|
||||
ToastAndroid.show(t("Xatolik yuz berdi"), ToastAndroid.TOP);
|
||||
Toast.error(t("Xatolik yuz berdi"));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user