mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
FIX: Set initial params
This commit is contained in:
parent
9e8ba26335
commit
48c1f6d7e1
2 changed files with 12 additions and 1 deletions
|
@ -282,7 +282,12 @@ const ScanLndInvoiceRoot = () => {
|
|||
|
||||
return (
|
||||
<ScanLndInvoiceStack.Navigator screenOptions={{ headerShadowVisible: false }}>
|
||||
<ScanLndInvoiceStack.Screen name="ScanLndInvoice" component={ScanLndInvoice} options={ScanLndInvoice.navigationOptions(theme)} />
|
||||
<ScanLndInvoiceStack.Screen
|
||||
name="ScanLndInvoice"
|
||||
component={ScanLndInvoice}
|
||||
options={ScanLndInvoice.navigationOptions(theme)}
|
||||
initialParams={ScanLndInvoice.initialParams}
|
||||
/>
|
||||
<ScanLndInvoiceStack.Screen name="SelectWallet" component={SelectWallet} options={SelectWallet.navigationOptions(theme)} />
|
||||
<ScanLndInvoiceStack.Screen name="Success" component={Success} options={{ headerShown: false, gestureEnabled: false }} />
|
||||
<ScanLndInvoiceStack.Screen name="LnurlPay" component={LnurlPay} options={LnurlPay.navigationOptions(theme)} />
|
||||
|
|
|
@ -375,6 +375,12 @@ ScanLndInvoice.navigationOptions = navigationStyle(
|
|||
opts => ({ ...opts, title: loc.send.header, statusBarStyle: 'light' }),
|
||||
);
|
||||
|
||||
ScanLndInvoice.initialParams = {
|
||||
uri: undefined,
|
||||
walletID: undefined,
|
||||
invoice: undefined,
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
walletSelectRoot: {
|
||||
marginBottom: 16,
|
||||
|
|
Loading…
Add table
Reference in a new issue