Fix keyboard double pad issue in email change & verify modals (#1664)
parent
fc28fc639f
commit
e878da04a1
|
@ -1,11 +1,5 @@
|
||||||
import React, {useState} from 'react'
|
import React, {useState} from 'react'
|
||||||
import {
|
import {ActivityIndicator, SafeAreaView, StyleSheet, View} from 'react-native'
|
||||||
ActivityIndicator,
|
|
||||||
KeyboardAvoidingView,
|
|
||||||
SafeAreaView,
|
|
||||||
StyleSheet,
|
|
||||||
View,
|
|
||||||
} from 'react-native'
|
|
||||||
import {ScrollView, TextInput} from './util'
|
import {ScrollView, TextInput} from './util'
|
||||||
import {observer} from 'mobx-react-lite'
|
import {observer} from 'mobx-react-lite'
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
|
@ -101,10 +95,7 @@ export const Component = observer(function Component({}: {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<KeyboardAvoidingView
|
<SafeAreaView style={[pal.view, s.flex1]}>
|
||||||
behavior="padding"
|
|
||||||
style={[pal.view, styles.container]}>
|
|
||||||
<SafeAreaView style={s.flex1}>
|
|
||||||
<ScrollView
|
<ScrollView
|
||||||
testID="changeEmailModal"
|
testID="changeEmailModal"
|
||||||
style={[s.flex1, isMobile && {paddingHorizontal: 18}]}>
|
style={[s.flex1, isMobile && {paddingHorizontal: 18}]}>
|
||||||
|
@ -228,15 +219,10 @@ export const Component = observer(function Component({}: {}) {
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
</KeyboardAvoidingView>
|
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
|
||||||
flex: 1,
|
|
||||||
paddingBottom: isWeb ? 0 : 40,
|
|
||||||
},
|
|
||||||
titleSection: {
|
titleSection: {
|
||||||
paddingTop: isWeb ? 0 : 4,
|
paddingTop: isWeb ? 0 : 4,
|
||||||
paddingBottom: isWeb ? 14 : 10,
|
paddingBottom: isWeb ? 14 : 10,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import React, {useState} from 'react'
|
import React, {useState} from 'react'
|
||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
KeyboardAvoidingView,
|
|
||||||
Pressable,
|
Pressable,
|
||||||
SafeAreaView,
|
SafeAreaView,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
|
@ -82,10 +81,7 @@ export const Component = observer(function Component({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<KeyboardAvoidingView
|
<SafeAreaView style={[pal.view, s.flex1]}>
|
||||||
behavior="padding"
|
|
||||||
style={[pal.view, styles.container]}>
|
|
||||||
<SafeAreaView style={s.flex1}>
|
|
||||||
<ScrollView
|
<ScrollView
|
||||||
testID="verifyEmailModal"
|
testID="verifyEmailModal"
|
||||||
style={[s.flex1, isMobile && {paddingHorizontal: 18}]}>
|
style={[s.flex1, isMobile && {paddingHorizontal: 18}]}>
|
||||||
|
@ -128,9 +124,7 @@ export const Component = observer(function Component({
|
||||||
color={pal.colors.text}
|
color={pal.colors.text}
|
||||||
size={16}
|
size={16}
|
||||||
/>
|
/>
|
||||||
<Text
|
<Text type="xl-medium" style={[pal.text, s.flex1, {minWidth: 0}]}>
|
||||||
type="xl-medium"
|
|
||||||
style={[pal.text, s.flex1, {minWidth: 0}]}>
|
|
||||||
{store.session.currentSession?.email || ''}
|
{store.session.currentSession?.email || ''}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
@ -244,7 +238,6 @@ export const Component = observer(function Component({
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
</KeyboardAvoidingView>
|
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -274,10 +267,6 @@ function ReminderIllustration() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
|
||||||
flex: 1,
|
|
||||||
paddingBottom: isWeb ? 0 : 40,
|
|
||||||
},
|
|
||||||
titleSection: {
|
titleSection: {
|
||||||
paddingTop: isWeb ? 0 : 4,
|
paddingTop: isWeb ? 0 : 4,
|
||||||
paddingBottom: isWeb ? 14 : 10,
|
paddingBottom: isWeb ? 14 : 10,
|
||||||
|
|
Loading…
Reference in New Issue