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

Pan on drawer to close #204

Open
fabriziogiordano opened this issue Aug 5, 2016 · 4 comments
Open

Pan on drawer to close #204

fabriziogiordano opened this issue Aug 5, 2016 · 4 comments

Comments

@fabriziogiordano
Copy link

Is it possible to drag on the open drawer and close it?

I am using this Props:

        acceptPan={true}
        negotiatePan={true}
        acceptTap={true}
        tapToClose={true}
        captureGestures={true}
        openDrawerOffset={0.2}
        closedDrawerOffset={0}
        panCloseMask={0.2}
        panOpenMask={0.2}
@fabriziogiordano fabriziogiordano changed the title Pan on Draw to close Pan on drawer to close Aug 5, 2016
@naiyt
Copy link

naiyt commented Oct 3, 2016

I'd also like to know this. Did you ever figure out if this was possible @fabriziogiordano?

@fabriziogiordano
Copy link
Author

@naiyt I forked this and commented out 2 lines in the index.js file
master...fabriziogiordano:master#diff-168726dbe96b3ce427e7fedce31bb0bc

It is a dirty patch for now that make it work for my use case.

I hope there were a better solution.

@naiyt
Copy link

naiyt commented Oct 17, 2016

Worked for me as well, thanks @fabriziogiordano!

If I have some time later this week I might see if I can figure out how to make that a configurable option and open a PR.

naiyt added a commit to naiyt/react-native-drawer that referenced this issue Oct 18, 2016
@tuyennguyen266
Copy link
Contributor

I added a PR to solve this issue here: #270.

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

3 participants