BlueWallet/screen/settings/tools.js

33 lines
1003 B
JavaScript
Raw Normal View History

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>
);
};
2021-09-14 07:36:00 +02:00
NetworkSettings.navigationOptions = navigationStyle({}, opts => ({ ...opts, headerTitle: loc.settings.tools }));
export default NetworkSettings;