Merge pull request #6002 from BlueWallet/params

FIX: Set initial params
This commit is contained in:
GLaDOS 2024-01-12 14:58:45 +00:00 committed by GitHub
commit bde372a8f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -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)} />

View File

@ -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,