@@ -7,27 +7,23 @@ NS_ASSUME_NONNULL_BEGIN
7
7
8
8
@interface ReactNativePageView : UIView
9
9
10
- - (instancetype )initWithEventDispatcher : (RCTEventDispatcher *) eventDispatcher ;
10
+ - (instancetype )init ;
11
11
12
- @property (nonatomic ) NSInteger initialPage;
13
- @property (nonatomic ) NSInteger lastReportedIndex;
14
- @property (nonatomic ) NSInteger currentIndex;
12
+ @property (nonatomic ) NSInteger count;
13
+ @property (nonatomic ) NSInteger offset;
14
+ @property (nonatomic ) UIPageViewControllerNavigationOrientation orientation;
15
+ @property (nonatomic ) BOOL overdrag;
15
16
@property (nonatomic ) NSInteger pageMargin;
16
- @property (nonatomic , readonly ) BOOL scrollEnabled;
17
- @property (nonatomic , readonly ) BOOL showPageIndicator;
18
- @property (nonatomic , readonly ) UIScrollViewKeyboardDismissMode dismissKeyboard;
17
+ @property (nonatomic ) BOOL scrollEnabled;
18
+ @property (nonatomic ) BOOL showPageIndicator;
19
19
@property (nonatomic ) UIPageViewControllerTransitionStyle transitionStyle;
20
- @property ( nonatomic ) UIPageViewControllerNavigationOrientation orientation;
20
+
21
21
@property (nonatomic , copy ) RCTDirectEventBlock onPageSelected;
22
22
@property (nonatomic , copy ) RCTDirectEventBlock onPageScroll;
23
23
@property (nonatomic , copy ) RCTDirectEventBlock onPageScrollStateChanged;
24
- @property (nonatomic ) BOOL overdrag;
25
-
26
24
27
25
- (void )goTo : (NSInteger )index animated : (BOOL )animated ;
28
26
- (void )shouldScroll : (BOOL )scrollEnabled ;
29
- - (void )shouldShowPageIndicator : (BOOL )showPageIndicator ;
30
- - (void )shouldDismissKeyboard : (NSString *)dismissKeyboard ;
31
27
32
28
@end
33
29
0 commit comments