Skip to content

Commit

Permalink
Layout event
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottkember committed Nov 25, 2024
1 parent 83546f3 commit c63c1d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ReactNativeZoomableView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,10 @@ class ReactNativeZoomableView extends Component<
style={styles.container}
{...this.gestureHandlers.panHandlers}
ref={this.zoomSubjectWrapperRef}
onLayout={this.grabZoomSubjectOriginalMeasurements}
onLayout={(event) => {
this.props.onLayout?.(event);
this.grabZoomSubjectOriginalMeasurements();
}}
>
<Animated.View
style={[
Expand Down

0 comments on commit c63c1d5

Please sign in to comment.