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

Support manual pin/unpin #116

Open
AndersDJohnson opened this issue Aug 29, 2017 · 3 comments
Open

Support manual pin/unpin #116

AndersDJohnson opened this issue Aug 29, 2017 · 3 comments

Comments

@AndersDJohnson
Copy link

AndersDJohnson commented Aug 29, 2017

Add a prop to manually set pin/unpin state, e.g. to enable a hide button that unpins when pinned if user wants to hide headroom without scrolling down.

@denkristoffer
Copy link
Contributor

denkristoffer commented Oct 11, 2017

You can set a reference and use this.ref.pin() or this.ref.unpin().

@DocCaliban
Copy link

Going to agree with @AndersDJohnson and point out that using a ref is discouraged.
https://reactjs.org/docs/refs-and-the-dom.html#dont-overuse-refs

@barrettluke
Copy link

translateY for unpin is HARDCODED '-100%' please change this.

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

4 participants