Skip to content

Commit 874bff6

Browse files
committed
add getNode method to get animated component node directly
1 parent 5da041f commit 874bff6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/with-collapsible-header.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ export const withCollapsibleHeader = <T extends ScrollViewProps>(
239239
return this.wrappedComponent.current
240240
}
241241

242+
public getNode = () => {
243+
return this.wrappedComponent.current.getNode()
244+
}
245+
242246
public showHeader = (options: AnimationConfig | unknown) => {
243247
this.moveHeader(
244248
this.offsetValue - this.props.headerHeight,

0 commit comments

Comments
 (0)