@@ -344,28 +344,28 @@ - (void)synchronouslyDispatchAccessbilityEventOnUIThread:(ReactTag)reactTag even
344344
345345- (void )measureAsyncOnUI : (ReactTag)reactTag rootView : (UIView*)rootView callback : (const std::function<void (folly::dynamic)> &)callback {
346346 RCTAssertMainQueue ();
347-
348- UIView<RCTComponentViewProtocol> *view = [self ->_componentViewRegistry findComponentViewWithTag: reactTag];
349- if (!view) {
350- // this view was probably collapsed out
351- RCTLogWarn (@" measure cannot find view with tag #%@ " , reactTag);
352- callback ({});
353- return ;
354- }
355-
356- // By convention, all coordinates, whether they be touch coordinates, or
357- // measurement coordinates are with respect to the root view.
358- CGRect frame = view.frame ;
359- CGRect globalBounds = [view convertRect: view.bounds toView: rootView];
360-
361- callback (
362- folly::dynamic::array (frame.origin .x ,
363- frame.origin .y ,
364- globalBounds.size .width ,
365- globalBounds.size .height ,
366- globalBounds.origin .x ,
367- globalBounds.origin .y )
368- );
347+
348+ UIView<RCTComponentViewProtocol> *view = [self ->_componentViewRegistry findComponentViewWithTag: reactTag];
349+ if (!view) {
350+ // this view was probably collapsed out
351+ RCTLogWarn (@" measure cannot find view with tag #%@ " , reactTag);
352+ callback ({});
353+ return ;
354+ }
355+
356+ // By convention, all coordinates, whether they be touch coordinates, or
357+ // measurement coordinates are with respect to the root view.
358+ CGRect frame = view.frame ;
359+ CGRect globalBounds = [view convertRect: view.bounds toView: rootView];
360+
361+ callback (
362+ folly::dynamic::array (frame.origin .x ,
363+ frame.origin .y ,
364+ globalBounds.size .width ,
365+ globalBounds.size .height ,
366+ globalBounds.origin .x ,
367+ globalBounds.origin .y )
368+ );
369369}
370370
371371@end
0 commit comments