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