[英]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”,但垂直方向上,任何建议都会很有帮助,谢谢〜
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.