skip to Main Content

How to specify the type for the return of useNavigation – React native

I'm having some diffuculties specifing the parameters for a function (onError) that receive the return of a useNavigation()) import { BottomTabScreenProps } from '@react-navigation/bottom-tabs' import { CompositeScreenProps, NavigatorScreenParams, useNavigation } from '@react-navigation/native' import { NativeStackNavigationProp, NativeStackScreenProps } from '@react-navigation/native-stack' import…

VIEW QUESTION
Back To Top
Search