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) {