Merge pull request #5804 from BlueWallet/initialparams

FIX: Sometimes would crash due to lack of initialParams
This commit is contained in:
GLaDOS 2023-11-04 18:39:07 +00:00 committed by GitHub
commit 1fb9060603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -216,7 +216,12 @@ const SendDetailsRoot = () => {
return (
<SendDetailsStack.Navigator screenOptions={{ headerHideShadow: true }}>
<SendDetailsStack.Screen name="SendDetails" component={SendDetails} options={SendDetails.navigationOptions(theme)} />
<SendDetailsStack.Screen
name="SendDetails"
component={SendDetails}
options={SendDetails.navigationOptions(theme)}
initialParams={SendDetails.initialParams}
/>
<SendDetailsStack.Screen name="Confirm" component={Confirm} options={Confirm.navigationOptions(theme)} />
<SendDetailsStack.Screen
name="PsbtWithHardwareWallet"

View file

@ -1682,3 +1682,5 @@ SendDetails.navigationOptions = navigationStyleTx({}, options => ({
title: loc.send.header,
statusBarStyle: 'light',
}));
SendDetails.initialParams = { isEditable: true };