2020-07-20 15:38:46 +02:00
|
|
|
import React from 'react';
|
2020-07-15 19:32:59 +02:00
|
|
|
import { ScrollView, TouchableOpacity, StyleSheet, StatusBar } from 'react-native';
|
2020-05-27 13:12:17 +02:00
|
|
|
import { useNavigation } from '@react-navigation/native';
|
2020-12-04 10:50:23 +01:00
|
|
|
import navigationStyle from '../../components/navigationStyle';
|
|
|
|
import { BlueListItem, BlueHeaderDefaultSubHooks } from '../../BlueComponents';
|
2020-07-20 15:38:46 +02:00
|
|
|
import loc from '../../loc';
|
2018-09-30 10:31:09 +02:00
|
|
|
|
2020-05-24 11:17:26 +02:00
|
|
|
const styles = StyleSheet.create({
|
|
|
|
root: {
|
|
|
|
flex: 1,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2019-12-25 06:44:33 +01:00
|
|
|
const Settings = () => {
|
2019-10-30 04:00:07 +01:00
|
|
|
const { navigate } = useNavigation();
|
2018-09-30 10:31:09 +02:00
|
|
|
|
2020-07-20 15:38:46 +02:00
|
|
|
return (
|
2020-07-15 19:32:59 +02:00
|
|
|
<ScrollView style={styles.root}>
|
|
|
|
<StatusBar barStyle="default" />
|
|
|
|
<BlueHeaderDefaultSubHooks leftText={loc.settings.header} rightComponent={null} />
|
2020-09-22 03:53:28 +02:00
|
|
|
<BlueListItem title={loc.settings.general} component={TouchableOpacity} onPress={() => navigate('GeneralSettings')} chevron />
|
|
|
|
<BlueListItem title={loc.settings.currency} component={TouchableOpacity} onPress={() => navigate('Currency')} chevron />
|
|
|
|
<BlueListItem title={loc.settings.language} component={TouchableOpacity} onPress={() => navigate('Language')} chevron />
|
|
|
|
<BlueListItem
|
2020-07-20 15:38:46 +02:00
|
|
|
title={loc.settings.encrypt_title}
|
2020-07-15 19:32:59 +02:00
|
|
|
onPress={() => navigate('EncryptStorage')}
|
|
|
|
component={TouchableOpacity}
|
|
|
|
testID="SecurityButton"
|
|
|
|
chevron
|
|
|
|
/>
|
2020-09-22 03:53:28 +02:00
|
|
|
<BlueListItem title={loc.settings.network} component={TouchableOpacity} onPress={() => navigate('NetworkSettings')} chevron />
|
|
|
|
<BlueListItem
|
2020-07-31 15:43:55 +02:00
|
|
|
title={loc.settings.notifications}
|
|
|
|
component={TouchableOpacity}
|
|
|
|
onPress={() => navigate('NotificationSettings')}
|
|
|
|
chevron
|
|
|
|
/>
|
2020-10-10 21:19:42 +02:00
|
|
|
<BlueListItem title={loc.settings.privacy} component={TouchableOpacity} onPress={() => navigate('SettingsPrivacy')} chevron />
|
2020-09-22 03:53:28 +02:00
|
|
|
<BlueListItem
|
2020-07-15 19:32:59 +02:00
|
|
|
title={loc.settings.about}
|
|
|
|
component={TouchableOpacity}
|
|
|
|
onPress={() => navigate('About')}
|
|
|
|
testID="AboutButton"
|
|
|
|
chevron
|
|
|
|
/>
|
|
|
|
</ScrollView>
|
2019-10-30 04:00:07 +01:00
|
|
|
);
|
|
|
|
};
|
2020-07-15 19:32:59 +02:00
|
|
|
|
2019-12-25 06:44:33 +01:00
|
|
|
export default Settings;
|
2020-12-04 10:50:23 +01:00
|
|
|
Settings.navigationOptions = navigationStyle({
|
2020-11-22 01:57:51 +01:00
|
|
|
headerTitle: '',
|
|
|
|
});
|