反应本机顶部选项卡栏可滚动到列表中的特定部分?
React native Top Tap bar scrollable to specific section in a list?
-
scrollspy
-
react-native
-
react-native-scrollview
-
react-native-navigation
-
react-native-scrollable-tab-view
如果用户在滚动视图中向下滚动到“晚餐”选项,则“晚餐”图标应该在选项卡中突出显示。同样,如果用户点击早餐,它应该自动使滚动视图移动到早餐部分。类似于 ScrollSpytabs 的东西,如何在 React Native 中实现此功能?
您需要使用 SectionList
组件和自定义选项卡菜单
试试 react-native-tabs-section-list
npm 库 https://www.npmjs.com/package/react-native-tabs-section-list or investigate code into github repo https://github.com/bogoslavskiy/react-native-tabs-section-list
scrollspy
react-native
react-native-scrollview
react-native-navigation
react-native-scrollable-tab-view
如果用户在滚动视图中向下滚动到“晚餐”选项,则“晚餐”图标应该在选项卡中突出显示。同样,如果用户点击早餐,它应该自动使滚动视图移动到早餐部分。类似于 ScrollSpytabs 的东西,如何在 React Native 中实现此功能?
您需要使用 SectionList
组件和自定义选项卡菜单
试试 react-native-tabs-section-list
npm 库 https://www.npmjs.com/package/react-native-tabs-section-list or investigate code into github repo https://github.com/bogoslavskiy/react-native-tabs-section-list