From f99cb144b68efa492b564895a35aad8ad7a8cdf0 Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Fri, 23 Aug 2024 16:09:27 +0200 Subject: [PATCH] feat: add load method (#523) --- ios/Fabric/RNCSafeAreaProviderComponentView.mm | 6 ++++++ ios/Fabric/RNCSafeAreaViewComponentView.mm | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ios/Fabric/RNCSafeAreaProviderComponentView.mm b/ios/Fabric/RNCSafeAreaProviderComponentView.mm index 5f876ac9..35927d18 100644 --- a/ios/Fabric/RNCSafeAreaProviderComponentView.mm +++ b/ios/Fabric/RNCSafeAreaProviderComponentView.mm @@ -19,6 +19,12 @@ @implementation RNCSafeAreaProviderComponentView { BOOL _initialInsetsSent; } +// 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/Fabric/RNCSafeAreaViewComponentView.mm b/ios/Fabric/RNCSafeAreaViewComponentView.mm index 40841127..68c218d4 100644 --- a/ios/Fabric/RNCSafeAreaViewComponentView.mm +++ b/ios/Fabric/RNCSafeAreaViewComponentView.mm @@ -23,6 +23,12 @@ @implementation RNCSafeAreaViewComponentView { __weak UIView *_Nullable _providerView; } +// 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]) {