diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index a19682a5a..7f5e23cc3 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -454,7 +454,7 @@ extern NSString *RCTBridgeModuleNameForClass(Class cls); [areNew addObject:@(shadowView.isNewView)]; [parentsAreNew addObject:@(shadowView.superview.isNewView)]; id event = (id)kCFNull; - if (shadowView.hasOnLayout) { + if (shadowView.onLayout) { event = @{ @"target": shadowView.reactTag, @"layout": @{ diff --git a/React/Views/RCTShadowView.h b/React/Views/RCTShadowView.h index deb0e6367..7211b17a7 100644 --- a/React/Views/RCTShadowView.h +++ b/React/Views/RCTShadowView.h @@ -39,7 +39,7 @@ typedef void (^RCTApplierBlock)(RCTSparseArray *viewRegistry); @property (nonatomic, copy) NSString *viewName; @property (nonatomic, strong) UIColor *backgroundColor; // Used to propagate to children @property (nonatomic, assign) RCTUpdateLifecycle layoutLifecycle; -@property (nonatomic, assign, getter=hasOnLayout) BOOL onLayout; +@property (nonatomic, assign) BOOL onLayout; /** * isNewView - Used to track the first time the view is introduced into the hierarchy. It is initialized YES, then is