ADD: Broadcast on Network options

This commit is contained in:
ncoelho 2020-04-29 16:48:35 +02:00 committed by Overtorment
parent 1bd5086283
commit f3984bbb31
3 changed files with 13 additions and 11 deletions

View File

@ -166,6 +166,17 @@ const WalletsStackNavigator = createStackNavigator(
LNDViewAdditionalInvoiceInformation: {
screen: LNDViewAdditionalInvoiceInformation,
},
Broadcast: {
screen: Broadcast,
navigationOptions: () => ({
title: 'Broadcast',
headerStyle: {
backgroundColor: '#FFFFFF',
borderBottomWidth: 0,
},
headerTintColor: '#0c2550',
}),
},
},
{ headerBackTitleVisible: false },
);
@ -200,9 +211,6 @@ const CreateTransactionStackNavigator = createStackNavigator({
headerRight: null,
},
},
Broadcast: {
screen: Broadcast,
},
});
const LNDCreateInvoiceStackNavigator = createStackNavigator({
@ -333,13 +341,6 @@ const MainBottomTabs = createStackNavigator(
screen: receiveDetails,
},
Broadcast: {
screen: Broadcast,
navigationOptions: () => ({
title: 'Broadcast tx',
}),
},
//
// LND:

View File

@ -19,6 +19,7 @@ const NetworkSettings = () => {
<ScrollView>
<BlueListItem title={'Electrum server'} component={TouchableOpacity} onPress={() => navigate('ElectrumSettings')} />
<BlueListItem title={loc.settings.lightning_settings} component={TouchableOpacity} onPress={() => navigate('LightningSettings')} />
<BlueListItem title="Broadcast transaction" component={TouchableOpacity} onPress={() => navigate('Broadcast')} />
</ScrollView>
</SafeBlueArea>
);

View File

@ -268,9 +268,9 @@ export default class WalletDetails extends Component {
<BlueSpacing20 />
{this.renderMarketplaceButton()}
<BlueSpacing20 />
</React.Fragment>
)}
<BlueSpacing20 />
<BlueButton onPress={() => this.props.navigation.navigate('Broadcast')} title="Broadcast transaction" />
<BlueSpacing20 />
<TouchableOpacity