import React, { useEffect, useState } from 'react'; import { ScrollView, TouchableOpacity, StyleSheet } from 'react-native'; import { BlueNavigationStyle, BlueLoading, SafeBlueArea, BlueHeaderDefaultSub, BlueListItem } from '../../BlueComponents'; import { useNavigation } from '@react-navigation/native'; const loc = require('../../loc'); const styles = StyleSheet.create({ root: { flex: 1, }, }); const Settings = () => { const [isLoading, setIsLoading] = useState(true); const { navigate } = useNavigation(); useEffect(() => { setIsLoading(false); }, []); return isLoading ? ( ) : ( navigate('GeneralSettings')} chevron /> navigate('Currency')} chevron /> navigate('Language')} chevron /> navigate('EncryptStorage')} component={TouchableOpacity} testID="SecurityButton" chevron /> navigate('NetworkSettings')} chevron /> navigate('About')} testID="AboutButton" chevron /> ); }; Settings.navigationOptions = { ...BlueNavigationStyle, }; export default Settings;