This commit is contained in:
liu
2026-08-06 15:24:03 +08:00
commit c613b520a9
49 changed files with 13902 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import Taro from "@tarojs/taro";
import {useEffect, useState} from "react";
import {View} from "@tarojs/components";
export default () => {
const [safeBottom, setSafeBottom] = useState(0)
useEffect(() => {
const info = Taro.getSystemInfoSync()
setSafeBottom((info.screenHeight - info.safeArea!.bottom) || 0)
}, []);
return <View style={{ height: `${safeBottom}px` }}></View>
}