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]) {