From 6b241520291b415810eb03868027eb0da49add67 Mon Sep 17 00:00:00 2001 From: al Date: Tue, 21 Jan 2025 19:46:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbanner=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- screeens/Search/HostList/index.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/screeens/Search/HostList/index.jsx b/screeens/Search/HostList/index.jsx index f8566f1..deaab56 100644 --- a/screeens/Search/HostList/index.jsx +++ b/screeens/Search/HostList/index.jsx @@ -1,7 +1,6 @@ import { Text, View, - Dimensions, TouchableOpacity, Image as NativeImage, Alert, @@ -18,10 +17,10 @@ import Banner from "../../../components/Banner"; import requireAPI from "../../../utils/requireAPI"; import * as Linking from "expo-linking"; import { goToPage } from "../../../utils/tools"; +import { Platform } from "react-native"; export default function HostList() { const navigation = useNavigation(); const tailwind = useTailwind(); - const screenWidth = Dimensions.get("window").width; const [hostList, setHostList] = useState([]); const [bannerList, setBannerList] = useState([]); useEffect(() => { @@ -56,7 +55,7 @@ export default function HostList() { const _data = await requireAPI( "POST", "/api/activity_banner/list", - null, + { body: { device_type: Platform.OS === "android" ? 0 : 1 } }, true ); if (_data.ret === -1) {