File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ NOTE: This file is *not* currently used, for context see:
3
3
- https://github.com/callstack/react-native-pager-view/pull/783#discussion_r1410295171
4
4
- https://github.com/callstack/react-native-pager-view/pull/783#discussion_r1410316201
5
5
*/
6
+ #include < UIKit/UIKit.h>
6
7
7
8
@interface RNCPagerScrollView : UIScrollView <UIGestureRecognizerDelegate>
8
9
@end
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ NS_ASSUME_NONNULL_BEGIN
11
11
12
12
@property (nonatomic ) NSInteger initialPage;
13
13
@property (nonatomic ) NSString * orientation;
14
+ #if !TARGET_OS_VISION
14
15
@property (nonatomic , readonly ) UIScrollViewKeyboardDismissMode dismissKeyboard;
16
+ #endif
15
17
@property (nonatomic , copy ) RCTDirectEventBlock onPageSelected;
16
18
@property (nonatomic , copy ) RCTDirectEventBlock onPageScroll;
17
19
@property (nonatomic , copy ) RCTDirectEventBlock onPageScrollStateChanged;
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ @implementation RNCPagerView {
30
30
- (instancetype )initWithEventDispatcher : (id <RCTEventDispatcherProtocol>)eventDispatcher {
31
31
if (self = [super init ]) {
32
32
_initialPage = 0 ;
33
+ #if !TARGET_OS_VISION
33
34
_dismissKeyboard = UIScrollViewKeyboardDismissModeNone;
35
+ #endif
34
36
_coalescingKey = 0 ;
35
37
_eventDispatcher = eventDispatcher;
36
38
_orientation = @" horizontal" ;
@@ -89,11 +91,13 @@ - (void)shouldScroll:(BOOL)scrollEnabled {
89
91
}
90
92
}
91
93
94
+ #if !TARGET_OS_VISION
92
95
- (void )shouldDismissKeyboard : (NSString *)dismissKeyboard {
93
96
_dismissKeyboard = [dismissKeyboard isEqual: @" on-drag" ] ?
94
97
UIScrollViewKeyboardDismissModeOnDrag : UIScrollViewKeyboardDismissModeNone;
95
98
self.scrollView .keyboardDismissMode = _dismissKeyboard;
96
99
}
100
+ #endif
97
101
98
102
#pragma mark - Internal methods
99
103
You can’t perform that action at this time.
0 commit comments