NativeBase (react-native) Drawer not working properly with ScrollView Child
up vote
0
down vote
favorite
I am using the NativeBase drawer on react-native. It works fine when the main content is not scroll-able.
But when the content becomes scrollable, it doesnt play well with the drawer. When panning horizontally to open the drawer any slight vertical pan is being detected resulting in the scrollview's scroll to be triggered resulting in the drawer closing.
<Drawer
ref={(ref) => { this.drawer = ref; }}
content={<SideBar />}
onClose={() => this.closeDrawer()}
panOpenMask={0.25}
panCloseMask={0.4}
openDrawerOffset={0.4}
>
<MainContent />
</Drawer>
react-native react-native-android native-base
add a comment |
up vote
0
down vote
favorite
I am using the NativeBase drawer on react-native. It works fine when the main content is not scroll-able.
But when the content becomes scrollable, it doesnt play well with the drawer. When panning horizontally to open the drawer any slight vertical pan is being detected resulting in the scrollview's scroll to be triggered resulting in the drawer closing.
<Drawer
ref={(ref) => { this.drawer = ref; }}
content={<SideBar />}
onClose={() => this.closeDrawer()}
panOpenMask={0.25}
panCloseMask={0.4}
openDrawerOffset={0.4}
>
<MainContent />
</Drawer>
react-native react-native-android native-base
I am able to find a temporary solution to this problem by keeping panThreshold at a very low value
– David Christie
Nov 13 at 7:40
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using the NativeBase drawer on react-native. It works fine when the main content is not scroll-able.
But when the content becomes scrollable, it doesnt play well with the drawer. When panning horizontally to open the drawer any slight vertical pan is being detected resulting in the scrollview's scroll to be triggered resulting in the drawer closing.
<Drawer
ref={(ref) => { this.drawer = ref; }}
content={<SideBar />}
onClose={() => this.closeDrawer()}
panOpenMask={0.25}
panCloseMask={0.4}
openDrawerOffset={0.4}
>
<MainContent />
</Drawer>
react-native react-native-android native-base
I am using the NativeBase drawer on react-native. It works fine when the main content is not scroll-able.
But when the content becomes scrollable, it doesnt play well with the drawer. When panning horizontally to open the drawer any slight vertical pan is being detected resulting in the scrollview's scroll to be triggered resulting in the drawer closing.
<Drawer
ref={(ref) => { this.drawer = ref; }}
content={<SideBar />}
onClose={() => this.closeDrawer()}
panOpenMask={0.25}
panCloseMask={0.4}
openDrawerOffset={0.4}
>
<MainContent />
</Drawer>
react-native react-native-android native-base
react-native react-native-android native-base
asked Nov 13 at 7:12
David Christie
598
598
I am able to find a temporary solution to this problem by keeping panThreshold at a very low value
– David Christie
Nov 13 at 7:40
add a comment |
I am able to find a temporary solution to this problem by keeping panThreshold at a very low value
– David Christie
Nov 13 at 7:40
I am able to find a temporary solution to this problem by keeping panThreshold at a very low value
– David Christie
Nov 13 at 7:40
I am able to find a temporary solution to this problem by keeping panThreshold at a very low value
– David Christie
Nov 13 at 7:40
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275669%2fnativebase-react-native-drawer-not-working-properly-with-scrollview-child%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I am able to find a temporary solution to this problem by keeping panThreshold at a very low value
– David Christie
Nov 13 at 7:40