Skip to content

SpatialNavigationRoot behaviour with useLockSpatialNavigation #176

Description

@jonp-iversoft

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions