diff --git a/src/hooks/useBeforeRemove.tsx b/src/hooks/useBeforeRemove.tsx index 78a95b4974d4..835d5a30babe 100644 --- a/src/hooks/useBeforeRemove.tsx +++ b/src/hooks/useBeforeRemove.tsx @@ -2,6 +2,7 @@ import {useNavigation} from '@react-navigation/native'; import type {EventListenerCallback, EventMapCore, NavigationState} from '@react-navigation/native'; import {useEffect} from 'react'; +// beforeRemove have some limitations. When the react-navigation is upgraded to 7.x, update this to use usePreventRemove hook. const useBeforeRemove = (onBeforeRemove: EventListenerCallback, 'beforeRemove'>) => { const navigation = useNavigation();