[FIX] Incorrect background color login on iPad (#1480)
This commit is contained in:
parent
5f0389c7de
commit
7307148b3a
|
@ -27,7 +27,8 @@ const styles = StyleSheet.create({
|
||||||
paddingVertical: 30
|
paddingVertical: 30
|
||||||
},
|
},
|
||||||
safeArea: {
|
safeArea: {
|
||||||
paddingBottom: 30
|
paddingBottom: 30,
|
||||||
|
flex: 1
|
||||||
},
|
},
|
||||||
serviceButton: {
|
serviceButton: {
|
||||||
borderRadius: 2,
|
borderRadius: 2,
|
||||||
|
@ -421,18 +422,22 @@ class LoginSignupView extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const { theme } = this.props;
|
const { theme } = this.props;
|
||||||
return (
|
return (
|
||||||
<ScrollView
|
<SafeAreaView
|
||||||
style={[
|
testID='welcome-view'
|
||||||
sharedStyles.containerScrollView,
|
forceInset={{ vertical: 'never' }}
|
||||||
sharedStyles.container,
|
style={[styles.safeArea, { backgroundColor: themes[theme].backgroundColor }]}
|
||||||
styles.container,
|
|
||||||
{ backgroundColor: themes[theme].backgroundColor },
|
|
||||||
isTablet && sharedStyles.tabletScreenContent
|
|
||||||
]}
|
|
||||||
{...scrollPersistTaps}
|
|
||||||
>
|
>
|
||||||
<StatusBar theme={theme} />
|
<ScrollView
|
||||||
<SafeAreaView testID='welcome-view' forceInset={{ vertical: 'never' }} style={styles.safeArea}>
|
style={[
|
||||||
|
sharedStyles.containerScrollView,
|
||||||
|
sharedStyles.container,
|
||||||
|
styles.container,
|
||||||
|
{ backgroundColor: themes[theme].backgroundColor },
|
||||||
|
isTablet && sharedStyles.tabletScreenContent
|
||||||
|
]}
|
||||||
|
{...scrollPersistTaps}
|
||||||
|
>
|
||||||
|
<StatusBar theme={theme} />
|
||||||
{this.renderServices()}
|
{this.renderServices()}
|
||||||
{this.renderServicesSeparator()}
|
{this.renderServicesSeparator()}
|
||||||
<Button
|
<Button
|
||||||
|
@ -449,8 +454,8 @@ class LoginSignupView extends React.Component {
|
||||||
theme={theme}
|
theme={theme}
|
||||||
testID='welcome-view-register'
|
testID='welcome-view-register'
|
||||||
/>
|
/>
|
||||||
</SafeAreaView>
|
</ScrollView>
|
||||||
</ScrollView>
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue