From 63b934920306f2f0ad69e3926d76d0e6e08b68e9 Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Fri, 23 Aug 2024 10:52:12 +0200 Subject: [PATCH] feat: add load method --- ios/Sources/AutoLayoutViewComponentView.mm | 6 ++++++ ios/Sources/CellContainerComponentView.mm | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ios/Sources/AutoLayoutViewComponentView.mm b/ios/Sources/AutoLayoutViewComponentView.mm index 9a1e2789c..2fecfc7c4 100644 --- a/ios/Sources/AutoLayoutViewComponentView.mm +++ b/ios/Sources/AutoLayoutViewComponentView.mm @@ -26,6 +26,12 @@ @implementation AutoLayoutViewComponentView AutoLayoutView *_autoLayoutView; } +// Needed because of this: https://github.com/facebook/react-native/pull/37274 ++ (void)load +{ + [super load]; +} + - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { diff --git a/ios/Sources/CellContainerComponentView.mm b/ios/Sources/CellContainerComponentView.mm index 7a6f46ecc..79a003c21 100644 --- a/ios/Sources/CellContainerComponentView.mm +++ b/ios/Sources/CellContainerComponentView.mm @@ -23,6 +23,12 @@ @interface CellContainerComponentView () @implementation CellContainerComponentView +// Needed because of this: https://github.com/facebook/react-native/pull/37274 ++ (void)load +{ + [super load]; +} + - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) {