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 props for finer control over styles and animations #52

Closed
wants to merge 23 commits into from

Conversation

Jahans3
Copy link

@Jahans3 Jahans3 commented Oct 2, 2018

I was unable to achieve the styles I wanted, so I added the following props to the scroll view:

  • headerContainerStyle - style object that gets passed to the Animated.View header container (useful for shadow overlaying scrolling container).
  • disableHeaderGrow - disables the scale transform animation on the header
  • disableOverlay - prevents overlay from rendering (useful for when setting to transparent isn't enough)


|`headerContainerStyle`|`Object`|`undefined`|Optional styles to be passed to the container of the header component|
|`disableHeaderGrow`|`boolean`|`undefined`|Disable to grow effect on the header|
|`disableOverlay`|`boolean`|`undefined`|Disable the image overlay|
Copy link
Contributor

Choose a reason for hiding this comment

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

I removed it to use maxOverlayOpacity={0] instead

ref={ref => (this.scrollViewRef = ref)}
ref={ref => {
if (getScrollViewRef) {
getScrollViewRef(ref);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the usecase for that?

Copy link
Author

Choose a reason for hiding this comment

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

I was unable to access the ref, can't remember the specific use case as it was a while ago

@Nhacsam
Copy link
Contributor

Nhacsam commented Jan 18, 2019

Thank a lot for your contribution.

I made some changes before merging here but your commits are now in the master branch!

@Nhacsam Nhacsam closed this Jan 18, 2019
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.

None yet

2 participants