BlueWallet/screen/settings/tools.js

33 lines
1,012 B
JavaScript
Raw Normal View History

2024-05-20 10:54:13 +01:00
import { useNavigation } from '@react-navigation/native';
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';
2024-10-31 22:25:47 -04:00
const ToolsScreen = () => {
const { navigate } = useNavigation();
const navigateToIsItMyAddress = () => {
navigate('IsItMyAddress');
};
const navigateToBroadcast = () => {
navigate('Broadcast');
};
const navigateToGenerateWord = () => {
navigate('GenerateWord');
};
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>
);
};
2024-10-31 22:25:47 -04:00
export default ToolsScreen;