import { createNativeStackNavigator } from '@react-navigation/native-stack'; import React from 'react'; import navigationStyle, { navigationStyleTx } from '../components/navigationStyle'; import { useTheme } from '../components/themes'; import loc from '../loc'; import { CoinControlComponent, ConfirmComponent, CreateTransactionComponent, PsbtMultisigComponent, PsbtMultisigQRCodeComponent, PsbtWithHardwareWalletComponent, SelectWalletComponent, SendDetailsComponent, SuccessComponent, } from './LazyLoadSendDetailsStack'; export type SendDetailsStackParamList = { SendDetails: { isEditable: boolean }; // Now expects an isEditable boolean Confirm: undefined; PsbtWithHardwareWallet: undefined; CreateTransaction: undefined; PsbtMultisig: undefined; PsbtMultisigQRCode: undefined; Success: undefined; SelectWallet: undefined; CoinControl: undefined; }; const Stack = createNativeStackNavigator(); const SendDetailsStack = () => { const theme = useTheme(); return ( ({ ...options, title: loc.send.header, statusBarStyle: 'light', }))(theme)} initialParams={{ isEditable: true }} // Correctly typed now /> ); }; export default SendDetailsStack;