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

Added draggable header #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

igor-slotin
Copy link

@igor-slotin igor-slotin commented Aug 18, 2018

Hi!
I've tried the solution for scroll view inside sliding up view, and unfortunately, it didn't work for me.
I've created a method which allows you to declare custom render function for a header and will send panHandlers to it.

for using it you need to declare some rendering method like
renderHeader = (panHendler) => { return ( <View {...panHendler}/> ); }

and set up it to sliding up panel
<SlidingUpPanel visible={this.props.visible} renderDraggableHeader={this.renderHeader} />

If it would be useful for this module - I will create a demo and attach it to readme.

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

Successfully merging this pull request may close these issues.

1 participant