آموزش جاوااسکریپت انجمن ها react native undefined is not a function (evaluating 'navigation.dispatch') پاسخ به: undefined is not a function (evaluating 'navigation.dispatch')

#20041
UKbed990
مشارکت کننده

You can also wrap your component with withNavigation function from react-navigation. That will make sure you have valid navigation prop.

Alternatively, you may pass this.props.navigation from parent component too.