BlueWallet/screen/settings/tools.js
Marcos Rodriguez Vélez 13a93869aa
DEL: LT
2022-07-12 18:03:02 -04:00

33 lines
1003 B
JavaScript

import React from 'react';
import { ScrollView } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import navigationStyle from '../../components/navigationStyle';
import { SafeBlueArea, BlueListItem } from '../../BlueComponents';
import loc from '../../loc';
const NetworkSettings = () => {
const { navigate } = useNavigation();
const navigateToIsItMyAddress = () => {
navigate('IsItMyAddress');
};
const navigateToBroadcast = () => {
navigate('Broadcast');
};
return (
<SafeBlueArea>
<ScrollView>
<BlueListItem title={loc.is_it_my_address.title} onPress={navigateToIsItMyAddress} testID="IsItMyAddress" chevron />
<BlueListItem title={loc.settings.network_broadcast} onPress={navigateToBroadcast} testID="Broadcast" chevron />
</ScrollView>
</SafeBlueArea>
);
};
NetworkSettings.navigationOptions = navigationStyle({}, opts => ({ ...opts, headerTitle: loc.settings.tools }));
export default NetworkSettings;