Skip to content

Commit 26cf8b4

Browse files
author
liudenghui
committed
Pass onLayout when a child is sticky
1 parent 13f7b9e commit 26cf8b4

File tree

1 file changed

+1
-0
lines changed
  • packages/react-native-web/src/exports/ScrollView

1 file changed

+1
-0
lines changed

packages/react-native-web/src/exports/ScrollView/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ const ScrollView = ((createReactClass({
170170
isSticky && styles.stickyHeader,
171171
pagingEnabled && styles.pagingEnabledChild
172172
)}
173+
onLayout={child.props.onLayout}
173174
>
174175
{child}
175176
</View>

0 commit comments

Comments
 (0)