简体   繁体   English

在React Native中,我如何像'react-native-scrollable-tab-view'一样垂直滚动选项卡视图

[英]in react native, how can I scroll tab view vertically like 'react-native-scrollable-tab-view'

react native, like the pictures below, the left part and right part is both scrollable, and when left tab is tab and right part follows, it's like 'react-native-scrollable-tab-view', but vertically, any suggestions will be helpful, thanks~ 响应本机,如下图所示,左侧和右侧都是可滚动的,左侧选项卡是制表符,右侧部分跟随时,就像“ react-native-scrollable-tab-view”,但垂直方向上,任何建议都会很有帮助,谢谢〜

example pic1 示例pic1

example pic2 示例pic2

Have a look as this PR which gives vertical tab bar capability to react-native-tab-view . 看看这个PR ,它提供了垂直tab栏功能来react-native-tab-view

Since it's created long ago and not merged, you might have to apply those changes on top of the current master branch to start using. 由于它是很久以前创建的并且尚未合并,因此您可能必须在当前master分支之上应用这些更改才能开始使用。

在此处输入图片说明

Maybe how you break down the UI in mind is clouding your judgement. 也许您如何分解用户界面会模糊您的判断。

Seeing the example pics, I think they are more like two components. 看示例图片,我认为它们更像是两个组成部分。

The right component is a SectionList. 正确的组件是SectionList。 The left component is a ScrollView with just buttons with labels of section titles of the right component. 左侧组件是ScrollView,仅带有带有右侧组件节标题标签的按钮。 The onPress() of these buttons just calls scrollToLocation() of the SectionList to programmatically scroll to the the respective section. 这些按钮的onPress()只是调用SectionList的scrollToLocation()以编程方式滚动到相应的部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更新了“react-native-scrollable-tab-view”反应原生库 - Updated 'react-native-scrollable-tab-view' react native library 问题与react-native-scrollable-tab-view及其道具:((react native) - Issue with react-native-scrollable-tab-view and their props :( (react native) react-native-scrollable-tab-view 上的隐形边距 - Invisible Margin on react-native-scrollable-tab-view 询问-在react-native-scrollable-tab-view中传递道具 - Ask - Pass the props in react-native-scrollable-tab-view react-native-scrollable-tab-view Android 问题 #999 - react-native-scrollable-tab-view Android issue #999 如何在react-native-scrollable-tab-view中将矢量图标添加为选项卡 - How to add vector icons as tab in react-native-scrollable-tab-view 您如何直接更改react-native-scrollable-tab-view(Reactive Native)源代码的样式? - How do you directly change style of the source code of react-native-scrollable-tab-view (Reactive Native)? react-native-scrollable-tab-view无法单击图标且未显示内容 - react-native-scrollable-tab-view can't click icon and didn't show content 如何使用react-native-scrollable-tab-view从其他组件切换标签 - How to switch tabs from another component using react-native-scrollable-tab-view 使用 react-native-scrollable-tab-view 在选项卡之间切换时出现问题 - Got problem when switching between tabs using react-native-scrollable-tab-view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM