Skip to content

Commit

Permalink
Merge pull request #7 from muhamad-rizki/master
Browse files Browse the repository at this point in the history
add getNode method to get animated component node directly
  • Loading branch information
iyegoroff authored May 9, 2019
2 parents 5da041f + 874bff6 commit 2cbc9f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/with-collapsible-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ export const withCollapsibleHeader = <T extends ScrollViewProps>(
return this.wrappedComponent.current
}

public getNode = () => {
return this.wrappedComponent.current.getNode()
}

public showHeader = (options: AnimationConfig | unknown) => {
this.moveHeader(
this.offsetValue - this.props.headerHeight,
Expand Down

0 comments on commit 2cbc9f5

Please sign in to comment.