Skip to content

Commit

Permalink
trigger onLayout which was passed in props by MeasureMeHOC to allow r…
Browse files Browse the repository at this point in the history
…e-render on styling changes
  • Loading branch information
Zohar Levin committed Jul 4, 2017
1 parent 1dface0 commit 9978047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Dash = (props) => {
)
}
return (
<View style={ [ props.style, isRow ? styles.dashRow : styles.dashColumn ] }>
<View onLayout={props.onLayout} style={ [ props.style, isRow ? styles.dashRow : styles.dashColumn ] }>
{ dash }
</View>
)
Expand Down

0 comments on commit 9978047

Please sign in to comment.