-
Notifications
You must be signed in to change notification settings - Fork 95
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
Conversation
|
||
|`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| |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Thank a lot for your contribution. I made some changes before merging here but your commits are now in the master branch! |
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 theAnimated.View
header container (useful for shadow overlaying scrolling container).disableHeaderGrow
- disables the scale transform animation on the headerdisableOverlay
- prevents overlay from rendering (useful for when setting totransparent
isn't enough)