skip to Main Content

Passing navigation into function in react native

Previous developer was passing null for whatever reason which gives: TypeError: null is not an object evaluating tabNavigation.navigate. Here is the code: import { NavigationRef } from './RootNavigation'; const renderBackToDashboard = (tabNavigation: any) => { return <HeaderBackButton tintColor={defaultOptions.headerTintColor||'white'} labelVisible={defaultOptions.headerBackTitleVisible||false} onPress={()…

VIEW QUESTION
Back To Top
Search