BlueWallet/screen/settings/tools.js
Marcos Rodriguez Velez 88bdab93f0
REF: Lazy load Settings
2024-05-12 11:35:49 -04:00

31 lines
1,019 B
JavaScript

import React from 'react';
import { ScrollView } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import loc from '../../loc';
import ListItem from '../../components/ListItem';
const NetworkSettings = () => {
const { navigate } = useNavigation();
const navigateToIsItMyAddress = () => {
navigate('IsItMyAddress');
};
const navigateToBroadcast = () => {
navigate('Broadcast');
};
const navigateToGenerateWord = () => {
navigate('GenerateWord');
};
return (
<ScrollView contentInsetAdjustmentBehavior="automatic" automaticallyAdjustContentInsets>
<ListItem title={loc.is_it_my_address.title} onPress={navigateToIsItMyAddress} testID="IsItMyAddress" chevron />
<ListItem title={loc.settings.network_broadcast} onPress={navigateToBroadcast} testID="Broadcast" chevron />
<ListItem title={loc.autofill_word.title} onPress={navigateToGenerateWord} testID="GenerateWord" chevron />
</ScrollView>
);
};
export default NetworkSettings;