2
2
3
3
#import < Foundation/Foundation.h>
4
4
#import " LEGACY_RNCPagerViewComponentView.h"
5
- // #import "RNCPagerScrollView.h"
6
- // #import <RNCViewPager/RNCViewPagerComponentDescriptor.h>
7
- // #import <react/renderer/components/RNCViewPager/ComponentDescriptors.h>
8
- // #import <react/renderer/components/RNCViewPager/EventEmitters.h>
9
- // #import <react/renderer/components/RNCViewPager/Props.h>
10
- // #import <react/renderer/components/RNCViewPager/RCTComponentViewHelpers.h>
11
5
#import < react/renderer/components/LEGACY_RNCViewPager/ComponentDescriptors.h>
12
6
#import < react/renderer/components/LEGACY_RNCViewPager/EventEmitters.h>
13
7
#import < react/renderer/components/LEGACY_RNCViewPager/Props.h>
@@ -25,9 +19,6 @@ @interface LEGACY_RNCPagerViewComponentView () <RCTLEGACY_RNCViewPagerViewProtoc
25
19
@end
26
20
27
21
@implementation LEGACY_RNCPagerViewComponentView {
28
- // RNCViewPagerShadowNode::ConcreteState::Shared _state;
29
- // RNCPagerScrollView *_scrollView;
30
- // UIView *_containerView;
31
22
LayoutMetrics _layoutMetrics;
32
23
UIScrollView *scrollView;
33
24
}
@@ -67,22 +58,6 @@ - (instancetype)initWithFrame:(CGRect)frame
67
58
if (self = [super initWithFrame: frame]) {
68
59
static const auto defaultProps = std::make_shared<const LEGACY_RNCViewPagerProps>();
69
60
_props = defaultProps;
70
- // _initialPage = -1;
71
-
72
- // _scrollView = [[RNCPagerScrollView alloc] initWithFrame:self.bounds];
73
-
74
- // _scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
75
- // _scrollView.delaysContentTouches = NO;
76
- // _scrollView.delegate = self;
77
- // _scrollView.pagingEnabled = YES;
78
- // _scrollView.showsHorizontalScrollIndicator = NO;
79
- // _scrollView.showsVerticalScrollIndicator = NO;
80
-
81
- // [self addSubview:_scrollView];
82
-
83
- // _containerView = [[UIView alloc] initWithFrame:CGRectZero];
84
-
85
- // [_scrollView addSubview:_containerView];
86
61
_nativeChildrenViewControllers = [[NSMutableArray alloc ] init ];
87
62
_currentIndex = -1 ;
88
63
_destinationIndex = -1 ;
@@ -100,14 +75,6 @@ - (void)willMoveToSuperview:(UIView *)newSuperview {
100
75
}
101
76
}
102
77
103
-
104
- // - (void)didMoveToWindow {
105
- // // Disable scroll view pan gesture for navigation controller screen edge go back gesture
106
- // if (self.reactViewController.navigationController != nil && self.reactViewController.navigationController.interactivePopGestureRecognizer != nil) {
107
- // [_scrollView.panGestureRecognizer requireGestureRecognizerToFail:self.reactViewController.navigationController.interactivePopGestureRecognizer];
108
- // }
109
- // }
110
-
111
78
#pragma mark - React API
112
79
113
80
- (void )mountChildComponentView : (UIView<RCTComponentViewProtocol> *)childComponentView index : (NSInteger )index {
0 commit comments