fix: bug
This commit is contained in:
parent
ef629713eb
commit
0399bba83f
|
|
@ -46,7 +46,8 @@ export default function EditProfileDrawer({
|
||||||
const { loading, pickImage, updateProfile } = useUpdateProfile()
|
const { loading, pickImage, updateProfile } = useUpdateProfile()
|
||||||
|
|
||||||
// 增加高度以避免被底部 Tab 栏遮挡,考虑底部安全区域
|
// 增加高度以避免被底部 Tab 栏遮挡,考虑底部安全区域
|
||||||
const snapPoints = useMemo(() => [280 + insets.bottom + 60], [insets.bottom])
|
// 使用百分比让 BottomSheet 在键盘弹出时能够自动调整
|
||||||
|
const snapPoints = useMemo(() => ['50%'], [])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
|
@ -129,6 +130,7 @@ export default function EditProfileDrawer({
|
||||||
backdropComponent={renderBackdrop}
|
backdropComponent={renderBackdrop}
|
||||||
keyboardBehavior="interactive"
|
keyboardBehavior="interactive"
|
||||||
keyboardBlurBehavior="restore"
|
keyboardBlurBehavior="restore"
|
||||||
|
android_keyboardInputMode="adjustResize"
|
||||||
>
|
>
|
||||||
<BottomSheetScrollView
|
<BottomSheetScrollView
|
||||||
style={styles.scrollView}
|
style={styles.scrollView}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue