import React, { useContext } from 'react'; import { ScrollView, StyleSheet, StatusBar } from 'react-native'; import { BlueListItem, BlueNavigationStyle, BlueHeaderDefaultSubHooks } from '../../BlueComponents'; import { useNavigation } from '@react-navigation/native'; import loc from '../../loc'; import { BlueStorageContext } from '../../blue_modules/storage-context'; const styles = StyleSheet.create({ root: { flex: 1, }, }); const Settings = () => { const { navigate } = useNavigation(); // By simply having it here, it'll re-render the UI if language is changed // eslint-disable-next-line no-unused-vars const { language } = useContext(BlueStorageContext); return ( navigate('GeneralSettings')} chevron /> navigate('Currency')} chevron /> navigate('Language')} chevron /> navigate('EncryptStorage')} testID="SecurityButton" chevron /> navigate('NetworkSettings')} chevron /> navigate('NotificationSettings')} chevron /> navigate('SettingsPrivacy')} chevron /> navigate('About')} testID="AboutButton" chevron /> ); }; export default Settings; Settings.navigationOptions = () => ({ ...BlueNavigationStyle(), headerTitle: '', });