2024-05-20 10:54:13 +01:00
|
|
|
import { useNavigation } from '@react-navigation/native';
|
2021-03-30 20:12:29 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { ScrollView } from 'react-native';
|
2024-05-20 10:54:13 +01:00
|
|
|
|
2023-12-16 17:44:35 -04:00
|
|
|
import ListItem from '../../components/ListItem';
|
2024-05-20 10:54:13 +01:00
|
|
|
import loc from '../../loc';
|
2021-03-30 20:12:29 +02:00
|
|
|
|
2024-10-31 22:25:47 -04:00
|
|
|
const ToolsScreen = () => {
|
2021-03-30 20:12:29 +02:00
|
|
|
const { navigate } = useNavigation();
|
|
|
|
|
|
|
|
const navigateToIsItMyAddress = () => {
|
|
|
|
navigate('IsItMyAddress');
|
|
|
|
};
|
|
|
|
|
|
|
|
const navigateToBroadcast = () => {
|
|
|
|
navigate('Broadcast');
|
|
|
|
};
|
|
|
|
|
2023-11-02 11:16:11 -06:00
|
|
|
const navigateToGenerateWord = () => {
|
|
|
|
navigate('GenerateWord');
|
|
|
|
};
|
|
|
|
|
2021-03-30 20:12:29 +02:00
|
|
|
return (
|
2024-01-13 10:56:29 -04:00
|
|
|
<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>
|
2021-03-30 20:12:29 +02:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2024-10-31 22:25:47 -04:00
|
|
|
export default ToolsScreen;
|