From 489ddef9aacafc9d16f6c0be1b4fb8d645df272c Mon Sep 17 00:00:00 2001 From: Yunyang Date: Thu, 31 Oct 2024 01:24:17 +0800 Subject: [PATCH] test: test with padding only --- .../src/ui/home/networkOnlineDevices.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/thu-info-app/src/ui/home/networkOnlineDevices.tsx b/apps/thu-info-app/src/ui/home/networkOnlineDevices.tsx index 499bea9af..bf2582081 100644 --- a/apps/thu-info-app/src/ui/home/networkOnlineDevices.tsx +++ b/apps/thu-info-app/src/ui/home/networkOnlineDevices.tsx @@ -6,7 +6,7 @@ import {getStr} from "../../utils/i18n"; import {RefreshControl, ScrollView} from "react-native-gesture-handler"; import { KeyboardAvoidingView, - Platform, + // Platform, Switch, Text, TextInput, @@ -17,7 +17,6 @@ import { import themes from "../../assets/themes/themes"; import {RoundedView} from "../../components/views"; import {useHeaderHeight} from "@react-navigation/elements"; -import { getStatusBarHeight } from "react-native-safearea-height"; import { styles } from "../settings/settings"; const DeviceCard = ({device, refresh}: {device: Device; refresh: Function}) => { @@ -132,8 +131,6 @@ export const NetworkOnlineDevicesScreen = () => { const headerHeight = useHeaderHeight() || 104; - const statusBarHeight = getStatusBarHeight(); - const refresh = () => { helper .getOnlineDevices() @@ -150,8 +147,9 @@ export const NetworkOnlineDevicesScreen = () => { return ( + // behavior={Platform.OS === "ios" ? "padding" : "height"} + behavior="padding" + keyboardVerticalOffset={headerHeight}> {