NativeBase(本机)抽屉不能与ScrollView Child一起正常使用

时间:2018-11-13 07:12:12

标签: react-native react-native-android native-base

我在react-native上使用NativeBase抽屉。当主要内容不可滚动时,它可以正常工作。 但是,当内容变为可滚动时,它在抽屉中的效果不佳。水平平移以打开抽屉时,将检测到任何轻微的垂直平移,从而导致滚动视图的滚动被触发,从而导致抽屉关闭。

     <Drawer
                ref={(ref) => { this.drawer = ref; }}
                content={<SideBar />}
                onClose={() => this.closeDrawer()} 
                panOpenMask={0.25} 
                panCloseMask={0.4}
                openDrawerOffset={0.4}
            >
            <MainContent />

        </Drawer>

0 个答案:

没有答案
相关问题