NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Navigate push will get error navigate.opendrawer() is not a function

Open kimberly96 opened this issue 6 years ago • 2 comments

i have 3 Screen. Login > Home > Anatomy. Home screen has a drawer. After klick save data in Anatomy, i am using this.props.navigation.push('Anatomy') so Home Screen will reload and give the data that i just saved.

But when i click drawer in Home screen i will getting error TypeError_this3.props.navigation.openDrawer is not a function. In('_this3.props.navigation.openDrawer()', _this3.props.navigation.openDrawer is undefined)

Its the same error when i am using StackNavigator.reset. I am using this so if i clicked back button at Home, i will not going to Login page. but it will get same error in Home Screen. Please any advice.

kimberly96 avatar Apr 17 '20 01:04 kimberly96

Hi @kimberly96 , can you provide minimal code reproduction on snack for the same?

hanykumar avatar Apr 20 '20 10:04 hanykumar

Hi @kimberly96 , closing for now due to inactivity. Let us know if the issue still persists.

hanykumar avatar Sep 11 '20 10:09 hanykumar