mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 07:15:35 +01:00
30 lines
1 KiB
JavaScript
30 lines
1 KiB
JavaScript
import React, { useEffect, useState } from 'react';
|
|
import { ScrollView, TouchableOpacity } from 'react-native';
|
|
import { BlueNavigationStyle, BlueLoading, SafeBlueArea, BlueListItem } from '../../BlueComponents';
|
|
import { useNavigation } from 'react-navigation-hooks';
|
|
const loc = require('../../loc');
|
|
|
|
const NetworkSettings = () => {
|
|
const [isLoading, setIsLoading] = useState(true);
|
|
const { navigate } = useNavigation();
|
|
|
|
useEffect(() => {
|
|
setIsLoading(false);
|
|
});
|
|
|
|
return isLoading ? (
|
|
<BlueLoading />
|
|
) : (
|
|
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
|
|
<ScrollView>
|
|
<BlueListItem title={loc.settings.lightning_settings} component={TouchableOpacity} onPress={() => navigate('LightningSettings')} />
|
|
<BlueListItem title={'Electrum server'} component={TouchableOpacity} onPress={() => navigate('ElectrumSettings')} />
|
|
</ScrollView>
|
|
</SafeBlueArea>
|
|
);
|
|
};
|
|
NetworkSettings.navigationOptions = {
|
|
...BlueNavigationStyle(),
|
|
title: 'Network',
|
|
};
|
|
export default NetworkSettings;
|