Skip to content

Commit 94e8553

Browse files
authored
feat(ios): add load method (#867)
1 parent 43f5a21 commit 94e8553

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ios/Fabric/RNCPagerViewComponentView.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ @implementation RNCPagerViewComponentView {
2727
NSInteger _initialPage;
2828
}
2929

30+
// Needed because of this: https://github.com/facebook/react-native/pull/37274
31+
+ (void)load
32+
{
33+
[super load];
34+
}
35+
3036
- (instancetype)initWithFrame:(CGRect)frame
3137
{
3238
if (self = [super initWithFrame:frame]) {

ios/LEGACY/Fabric/LEGACY_RNCPagerViewComponentView.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ @implementation LEGACY_RNCPagerViewComponentView {
2626
UIScrollView *scrollView;
2727
}
2828

29+
// Needed because of this: https://github.com/facebook/react-native/pull/37274
30+
+ (void)load
31+
{
32+
[super load];
33+
}
34+
2935
- (void)initializeNativePageViewController {
3036
const auto &viewProps = *std::static_pointer_cast<const LEGACY_RNCViewPagerProps>(_props);
3137
NSDictionary *options = @{ UIPageViewControllerOptionInterPageSpacingKey: @(viewProps.pageMargin) };

0 commit comments

Comments
 (0)