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

PanResponder interferes with ScrollView / FlatList / SectionList scrolling on iOS Device. #105

Open
santokhsinghdhani opened this issue Feb 9, 2023 · 2 comments

Comments

@santokhsinghdhani
Copy link

We are using RNNDrawer.showDrawer which renders a section list (tried FlatList and ScrollView as well). After scrolling it once or twice the section list starts to lag on iOS device (looks kind of fine on simulator). It's just a static list of 10-15 items, no dynamic rendering.

The app is in portrait mode only and we have already disabled dragging and swiping
disableDragging: true,
disableSwiping: true,

Other props:
direction: DirectionType.left,
dismissWhenTouchOutside: true,

Commenting these lines solves the issue:
Screenshot 2023-02-09 at 2 24 12 PM

Any suggestion on how to fix this issue? Or is there a way/prop to disable the pan responder?

@lukebrandonfarrell
Copy link
Owner

I believe you can disable the PanRsponder with disableDragging. See the docs: https://github.com/lukebrandonfarrell/react-native-navigation-drawer-extension#props

@santokhsinghdhani
Copy link
Author

I also thought so.

Using these props.
disableDragging: true,
disableSwiping: true,
direction: DirectionType.left,
dismissWhenTouchOutside: true,

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

No branches or pull requests

2 participants