Describe the bug
When useLockSpatialNavigation.lock() is set, the SpatialNavigationRoot onDirectionHandledWithoutMovement callback still fires
To Reproduce
const spatialNavigationLockActions = useLockSpatialNavigation();
useEffect(() => {
spatialNavigationLockActions.lock()
}, []);
...
<SpatialNavigationRoot onDirectionHandledWithoutMovement={() => console.log('bam')} />
Expected behavior
When the spatial navigation is locked, it would be expected that any callbacks or functionality of the navigation system are disabled.
Version and OS
- Library version:
5.1.0
- React Native version:
0.72.0
- OS [e.g. Android, web]