Skip to content

Commit a0b7800

Browse files
authored
fix(send): prevent back navigation on success (#2389)
1 parent a195eb7 commit a0b7800

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/screens/Wallets/Send/Success.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { StyleSheet, View, Image } from 'react-native';
33
import { useTranslation } from 'react-i18next';
44
import Lottie from 'lottie-react-native';
55
import { useReducedMotion } from 'react-native-reanimated';
6+
import { UNSTABLE_usePreventRemove } from '@react-navigation/native';
67

78
import BottomSheetNavigationHeader from '../../../components/BottomSheetNavigationHeader';
89
import SafeAreaInset from '../../../components/SafeAreaInset';
@@ -30,6 +31,8 @@ const Success = ({ route }: SendScreenProps<'Success'>): ReactElement => {
3031
return activityItemSelector(state, txId);
3132
});
3233

34+
UNSTABLE_usePreventRemove(true, () => {});
35+
3336
const isOnchain = type === EActivityType.onchain;
3437

3538
const navigateToTxDetails = (): void => {

0 commit comments

Comments
 (0)