-
Notifications
You must be signed in to change notification settings - Fork 68
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
Controlling the drawer not working on example app #16
Comments
Hey @betoharres, I've spent some time debugging the example project on Android and I am not able to reproduce the issue you are reporting. Btw, instead of cloning locally the repository, you can directly open the example here on Android: https://expo.io/@rgommezz/react-native-scroll-bottom-sheet-example If it still happens, could you record some short video or provide a reproducible snack? Also, it'd be useful to know the Android phone model and OS version |
Since this is a description about the problem that my pr #10 fixed, you can try this snack: |
@rgommezz sure, you want me to record the expo or the android emulator? |
Current Behavior
I'm trying to control the drawer position from the
ref
variable using thesnapTo
method.Running example code from horizontal screen.
Expected Behavior
Pressing
X
to fully close the drawer.How to reproduce
1- clone the project
2- run the expo client(I'm running on android)
3- select horizontal screen
4- swipe the drawer up
5- press the
X
button6- (the problem) the drawer stucks in the middle(wrong result of action)
Your Environment
Observations: I also tried to control the drawer in my current project. I've ditched my own component because this one looks awesome(Thanks for the great component)! But I"m having a hard time controlling the drawer. The
snapTo
is not responding properly to the argument I'm giving it; it only fully opens at first call(even though the argument was to open at middle position) and does not animate to any position in the remaining calls.I've tried to execute the example app and found out that the drawer is not outputting the exact same actions as in the gif in the README is as well.
The text was updated successfully, but these errors were encountered: