Skip to main content

useNavigationHandlers

Provides navigation handlers for the questionnaire form

Kind: React hook
Package: @ovok/native

Import​

import { useNavigationHandlers } from '@ovok/native/questionnaire-response-form';

TypeScript signatures​

({ currentItem, currentPage, enabledItems, formik, currentItemIndex, currentPageIndex, pages, setCurrentItemIndex, setCurrentPageIndex, setErrorMessage, }: UseNavigationHandlersProps): { handleNext: any; handlePrevious: any; }
ParameterTypeDetails
__0UseNavigationHandlersProps—

Returns: { handleNext: any; handlePrevious: any; }.

Source​

View the declaration in the SDK source.