diff --git a/apps/wallet-mobile/src/Staking/PoolTransition/usePoolTransitionModal.tsx b/apps/wallet-mobile/src/Staking/PoolTransition/usePoolTransitionModal.tsx index 4e3be6b30d..d230ca2b72 100644 --- a/apps/wallet-mobile/src/Staking/PoolTransition/usePoolTransitionModal.tsx +++ b/apps/wallet-mobile/src/Staking/PoolTransition/usePoolTransitionModal.tsx @@ -1,4 +1,5 @@ import * as React from 'react' +import {useWindowDimensions} from 'react-native' import {useModal} from '../../components' import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext' @@ -12,7 +13,8 @@ export const usePoolTransitionModal = () => { const [shownWallets, setShownWallets] = usePoolTransitionContext() const {openModal} = useModal() const strings = useStrings() - const modalHeight = 700 + const screenHeight = useWindowDimensions().height + const modalHeight = screenHeight * 0.8 React.useEffect(() => { if (!shownWallets.includes(wallet.id) && isPoolRetiring && poolTransition !== null) {