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

Adds scrollingStickyHeader prop and disables bg scaling on Android #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mtostenson
Copy link

This will address issue #37 by adding the scrollingStickyHeader prop which defaults to true. If disabled, the sticky header will only fade in, making for a smoother transition.

Additionally, this disables the background scaling for Android devices since Android listviews cannot scroll beyond their normal range. This prevents the occasional scale "popping" on Android when scrolling down fast.

Copy link
Collaborator

@fungilation fungilation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A whole more diffs than necessary with space indent to tabs. Go back to 2 spaces per indent please

})
}]
}}>
{this.renderStickyHeader()}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fatal redbox error on this.renderStickyHeader() doesn't exist, when prop scrollingStickyHeader is true.

This PR's post comment on scrollingStickyHeader being default to true is also wrong, default is false. Which renders sticky header with new fade behaviour. (awesome improvement at that 🍻)

fungilation added a commit to fungilation/react-native-parallax-scroll-view that referenced this pull request Aug 5, 2017
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.

2 participants