mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 02:09:10 +01:00
Merge pull request #6002 from BlueWallet/params
FIX: Set initial params
This commit is contained in:
commit
bde372a8f4
@ -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…
Reference in New Issue
Block a user