apply bg color to entire scrollview (#3364)
parent
69217f9a09
commit
3f79cb3e12
|
@ -1,27 +1,28 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
SafeAreaView,
|
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
|
SafeAreaView,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View,
|
View,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import {TextInput, ScrollView} from './util'
|
|
||||||
import LinearGradient from 'react-native-linear-gradient'
|
import LinearGradient from 'react-native-linear-gradient'
|
||||||
import * as Toast from '../util/Toast'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {Text} from '../util/text/Text'
|
|
||||||
import {s, colors, gradients} from 'lib/styles'
|
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
|
||||||
import {useTheme} from 'lib/ThemeContext'
|
|
||||||
import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
|
|
||||||
import {ErrorMessage} from '../util/error/ErrorMessage'
|
|
||||||
import {cleanError} from 'lib/strings/errors'
|
|
||||||
import {resetToTab} from '../../../Navigation'
|
|
||||||
import {Trans, msg} from '@lingui/macro'
|
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
import {useModalControls} from '#/state/modals'
|
import {useModalControls} from '#/state/modals'
|
||||||
import {useSession, useSessionApi, getAgent} from '#/state/session'
|
import {getAgent, useSession, useSessionApi} from '#/state/session'
|
||||||
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
|
import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
|
||||||
|
import {cleanError} from 'lib/strings/errors'
|
||||||
|
import {colors, gradients, s} from 'lib/styles'
|
||||||
|
import {useTheme} from 'lib/ThemeContext'
|
||||||
import {isAndroid} from 'platform/detection'
|
import {isAndroid} from 'platform/detection'
|
||||||
|
import {resetToTab} from '../../../Navigation'
|
||||||
|
import {ErrorMessage} from '../util/error/ErrorMessage'
|
||||||
|
import {Text} from '../util/text/Text'
|
||||||
|
import * as Toast from '../util/Toast'
|
||||||
|
import {ScrollView, TextInput} from './util'
|
||||||
|
|
||||||
export const snapPoints = isAndroid ? ['90%'] : ['55%']
|
export const snapPoints = isAndroid ? ['90%'] : ['55%']
|
||||||
|
|
||||||
|
@ -79,9 +80,7 @@ export function Component({}: {}) {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<SafeAreaView style={[s.flex1]}>
|
<SafeAreaView style={[s.flex1]}>
|
||||||
<ScrollView
|
<ScrollView style={[pal.view]} keyboardShouldPersistTaps="handled">
|
||||||
contentContainerStyle={[pal.view]}
|
|
||||||
keyboardShouldPersistTaps="handled">
|
|
||||||
<View style={[styles.titleContainer, pal.view]}>
|
<View style={[styles.titleContainer, pal.view]}>
|
||||||
<Text type="title-xl" style={[s.textCenter, pal.text]}>
|
<Text type="title-xl" style={[s.textCenter, pal.text]}>
|
||||||
<Trans>Delete Account</Trans>
|
<Trans>Delete Account</Trans>
|
||||||
|
|
Loading…
Reference in New Issue