When the user hits a tab on a bottom nav bar while already on the screen I'd want to bring the user back to the top of the screen. Anyone know how I can do that using react-native-navigation?
相关问题
- package com.reactnativenavigation does not exist
- React Navigation onPress in own function
- Error: Unable to resolve module ` react-native-scr
- Babel overrides is not allowed in preset options r
- Wix react-native-navigation change Tab and push sc
相关文章
- React-native app crashes on real android device
- Unable to resolve “fbjs/lib/areEqual” from “node_m
- React Native createDrawerNavigator not opening Nav
- wix react native navigation v2 | how to push new s
- React Navigation vs. React Native Navigation [clos
- React Native: Invariant Violation: The navigation
- react-navigation 3 reset in nested stack
- 原生的反应:重设路线,返回首页(React native: reset route, back to
Figured it out.
Add this to the page you want to be scrolled up.
If you want more info on setting navigator events then you can check out:
https://wix.github.io/react-native-navigation/#/screen-api?id=listening-to-tab-selected-events
And then add this function:
and add this to your ScrollView:
Thanks to this:
https://github.com/wix/react-native-navigation/issues/1719