useArrowNavigation

Hook to retrieve the Arrow Navigation instance in your project.

This hook returns the Arrow Navigation instance. It can be used to access the Arrow Navigation API from any part of your application.

Syntax

import { useArrowNavigation } from '@arrow-navigation/react'

const navigationApi = useArrowNavigation()

Parameters

None

Returns

This hook returns the Arrow Navigation instance. The instance is returned as a NavigationApi object. If the Arrow Navigation instance is not initialized, it returns null.

For more information, see the NavigationApi documentation.