mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
FIX: Settings was not fully visible on newer iPhone models
This commit is contained in:
parent
7f0a9760e7
commit
e6131aae71
1 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
import React, { useContext } from 'react';
|
||||
import { ScrollView, StyleSheet, Platform, View } from 'react-native';
|
||||
import { ScrollView, StyleSheet, Platform } from 'react-native';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
|
@ -20,19 +20,16 @@ const Settings = () => {
|
|||
const { language } = useContext(BlueStorageContext);
|
||||
|
||||
return (
|
||||
<>
|
||||
<View />
|
||||
<ScrollView style={styles.root}>
|
||||
{Platform.OS === 'android' ? <BlueHeaderDefaultSub leftText={loc.settings.header} /> : <></>}
|
||||
<BlueListItem title={loc.settings.general} onPress={() => navigate('GeneralSettings')} testID="GeneralSettings" chevron />
|
||||
<BlueListItem title={loc.settings.currency} onPress={() => navigate('Currency')} testID="Currency" chevron />
|
||||
<BlueListItem title={loc.settings.language} onPress={() => navigate('Language')} testID="Language" chevron />
|
||||
<BlueListItem title={loc.settings.encrypt_title} onPress={() => navigate('EncryptStorage')} testID="SecurityButton" chevron />
|
||||
<BlueListItem title={loc.settings.network} onPress={() => navigate('NetworkSettings')} testID="NetworkSettings" chevron />
|
||||
<BlueListItem title={loc.settings.tools} onPress={() => navigate('Tools')} testID="Tools" chevron />
|
||||
<BlueListItem title={loc.settings.about} onPress={() => navigate('About')} testID="AboutButton" chevron />
|
||||
</ScrollView>
|
||||
</>
|
||||
<ScrollView style={styles.root} contentInsetAdjustmentBehavior="automatic" automaticallyAdjustContentInsets>
|
||||
{Platform.OS === 'android' ? <BlueHeaderDefaultSub leftText={loc.settings.header} /> : <></>}
|
||||
<BlueListItem title={loc.settings.general} onPress={() => navigate('GeneralSettings')} testID="GeneralSettings" chevron />
|
||||
<BlueListItem title={loc.settings.currency} onPress={() => navigate('Currency')} testID="Currency" chevron />
|
||||
<BlueListItem title={loc.settings.language} onPress={() => navigate('Language')} testID="Language" chevron />
|
||||
<BlueListItem title={loc.settings.encrypt_title} onPress={() => navigate('EncryptStorage')} testID="SecurityButton" chevron />
|
||||
<BlueListItem title={loc.settings.network} onPress={() => navigate('NetworkSettings')} testID="NetworkSettings" chevron />
|
||||
<BlueListItem title={loc.settings.tools} onPress={() => navigate('Tools')} testID="Tools" chevron />
|
||||
<BlueListItem title={loc.settings.about} onPress={() => navigate('About')} testID="AboutButton" chevron />
|
||||
</ScrollView>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue