Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs 组件的 swipeable 属性在 rn 环境中无效 #1346

Closed
F-happy opened this issue May 19, 2017 · 1 comment · Fixed by #1351
Closed

Tabs 组件的 swipeable 属性在 rn 环境中无效 #1346

F-happy opened this issue May 19, 2017 · 1 comment · Fixed by #1351
Assignees
Labels

Comments

@F-happy
Copy link

F-happy commented May 19, 2017

Version

1.1.3

Environment

react-native 0.43.0

Steps to reproduce

<Tabs activeKey={this.state.activeKey} swipeable={true}>
    <TabPane tab="A" key="1">
        <MerchantManage {...this.props}/>
    </TabPane>
    <TabPane tab="B" key="2">
         <MerchantPhotoPage {...this.props}/>
    </TabPane>
</Tabs>

What is expected?

TabPane中的内容可以正常左右滑动

What is actually happening?

并不能滑动,后面发现当swipeable设置成 false 的时候就能滑动了,是不是代码里面这里的判断写反了呢?

@paranoidjk paranoidjk added the bug label May 19, 2017
@paranoidjk paranoidjk self-assigned this May 19, 2017
@paranoidjk paranoidjk added the RN label May 19, 2017
paranoidjk added a commit that referenced this issue May 19, 2017
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
@r70kg
Copy link

r70kg commented Jul 4, 2018

谷歌的手机模拟器中也无效
<Tabs tabs={tabs} initalPage={'t2'} tabBarPosition="left" tabDirection="vertical" swipeable={true} useOnPan={true} >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants