BlueWallet/screen/settings/tools.js
Marcos Rodriguez Velez 63739dd86a wip
2024-10-31 22:25:47 -04:00

33 lines
1012 B
JavaScript

import { useNavigation } from '@react-navigation/native';
import React from 'react';
import { ScrollView } from 'react-native';
import ListItem from '../../components/ListItem';
import loc from '../../loc';
const ToolsScreen = () => {
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 ToolsScreen;