From c84b6548125c2bcb2fd2104d662105109a24d3c1 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 5 Feb 2024 15:00:13 -0800 Subject: [PATCH] fix scrolling in delete account modal (#2733) --- src/view/com/modals/DeleteAccount.tsx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/view/com/modals/DeleteAccount.tsx b/src/view/com/modals/DeleteAccount.tsx index 945d7bc8..40d78cfe 100644 --- a/src/view/com/modals/DeleteAccount.tsx +++ b/src/view/com/modals/DeleteAccount.tsx @@ -1,11 +1,12 @@ import React from 'react' import { + SafeAreaView, ActivityIndicator, StyleSheet, TouchableOpacity, View, } from 'react-native' -import {TextInput} from './util' +import {TextInput, ScrollView} from './util' import LinearGradient from 'react-native-linear-gradient' import * as Toast from '../util/Toast' import {Text} from '../util/text/Text' @@ -20,8 +21,9 @@ import {Trans, msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useModalControls} from '#/state/modals' import {useSession, useSessionApi, getAgent} from '#/state/session' +import {isAndroid} from 'platform/detection' -export const snapPoints = ['60%'] +export const snapPoints = isAndroid ? ['90%'] : ['55%'] export function Component({}: {}) { const pal = usePalette('default') @@ -76,8 +78,10 @@ export function Component({}: {}) { closeModal() } return ( - - + + Delete Account @@ -234,18 +238,12 @@ export function Component({}: {}) { )} )} - - + + ) } const styles = StyleSheet.create({ - container: { - flex: 1, - }, - innerContainer: { - paddingBottom: 20, - }, titleContainer: { display: 'flex', flexDirection: 'row',