Skip to content

Commit

Permalink
Merge pull request #51 from Root-App/jr-tim-scrollview-layoutmeasurement
Browse files Browse the repository at this point in the history
Include support for layoutMeasurement in ScrollView
  • Loading branch information
Jason Robinaugh committed Jul 2, 2018
2 parents a4d8f5c + 6da78a2 commit 48460d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-mock-render",
"version": "0.0.26",
"version": "0.0.27",
"description": "A fork of react-native-mock that renders components",
"main": "build/react-native.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/components/ScrollView.js
Expand Up @@ -320,6 +320,10 @@ const ScrollView = createReactClass({

this.props.onScroll({
nativeEvent: {
layoutMeasurement: {
width: object.width,
height: object.height,
},
contentOffset: {
x: object.x,
y: object.y,
Expand Down

0 comments on commit 48460d7

Please sign in to comment.