Skip to content

Commit

Permalink
add SafeAreaView, fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed Jul 29, 2021
1 parent 14bed4d commit 4fd8fa7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/components/Settings/RemoveWalletScreen.js
@@ -1,6 +1,7 @@
// @flow

import React from 'react'
import {SafeAreaView} from 'react-native-safe-area-context'
import {useSelector, useDispatch} from 'react-redux'
import {View, ScrollView} from 'react-native'
import {injectIntl, defineMessages, type IntlShape} from 'react-intl'
Expand Down Expand Up @@ -75,7 +76,7 @@ const RemoveWalletScreen = ({intl, navigation}: Props) => {
const disabled = (!isHW && !hasMnemonicWrittenDown) || walletName !== typedWalletName

return (
<View style={styles.container}>
<SafeAreaView edges={['left', 'right', 'bottom']} style={styles.container}>
<StatusBar type={'dark'} />

<ScrollView bounces={false} contentContainerStyle={styles.contentContainer}>
Expand All @@ -84,6 +85,8 @@ const RemoveWalletScreen = ({intl, navigation}: Props) => {
<Text style={styles.description}>{intl.formatMessage(messages.descriptionParagraph2)}</Text>
</View>

<Spacer height={32} />

<View style={styles.walletInfo}>
<Text style={styles.walletNameLabel}>{intl.formatMessage(messages.walletName)}</Text>
<Spacer height={8} />
Expand Down Expand Up @@ -124,7 +127,7 @@ const RemoveWalletScreen = ({intl, navigation}: Props) => {
disabled={disabled}
/>
</View>
</View>
</SafeAreaView>
)
}

Expand Down
6 changes: 1 addition & 5 deletions src/components/Settings/styles/RemoveWalletScreen.style.js
Expand Up @@ -19,9 +19,7 @@ const styles = StyleSheet.create({
textAlign: 'center',
},

walletInfo: {
flex: 1,
},
walletInfo: {},
walletNameLabel: {
fontSize: 16,
},
Expand All @@ -31,9 +29,7 @@ const styles = StyleSheet.create({
},

contentContainer: {
paddingTop: 8,
padding: 16,
flexGrow: 1,
},

actions: {
Expand Down

0 comments on commit 4fd8fa7

Please sign in to comment.