1 | #import <React/RCTEventDispatcher.h>
|
2 | #import <React/RCTShadowView.h>
|
3 | #import <React/UIView+React.h>
|
4 | #import <UIKit/UIKit.h>
|
5 |
|
6 | NS_ASSUME_NONNULL_BEGIN
|
7 |
|
8 | @interface ReactNativePageView: UIView
|
9 |
|
10 | - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher;
|
11 |
|
12 | @property(nonatomic) NSInteger initialPage;
|
13 | @property(nonatomic) NSInteger currentIndex;
|
14 | @property(nonatomic) NSInteger pageMargin;
|
15 | @property(nonatomic, readonly) BOOL scrollEnabled;
|
16 | @property(nonatomic, readonly) BOOL showPageIndicator;
|
17 | @property(nonatomic, readonly) UIScrollViewKeyboardDismissMode dismissKeyboard;
|
18 | @property(nonatomic) UIPageViewControllerTransitionStyle transitionStyle;
|
19 | @property(nonatomic) UIPageViewControllerNavigationOrientation orientation;
|
20 | @property(nonatomic, copy) RCTDirectEventBlock onPageSelected;
|
21 | @property(nonatomic, copy) RCTDirectEventBlock onPageScroll;
|
22 | @property(nonatomic, copy) RCTDirectEventBlock onPageScrollStateChanged;
|
23 | @property(nonatomic) BOOL overdrag;
|
24 |
|
25 |
|
26 | - (void)goTo:(NSInteger)index animated:(BOOL)animated;
|
27 | - (void)shouldScroll:(BOOL)scrollEnabled;
|
28 | - (void)shouldShowPageIndicator:(BOOL)showPageIndicator;
|
29 | - (void)shouldDismissKeyboard:(NSString *)dismissKeyboard;
|
30 |
|
31 | @end
|
32 |
|
33 | NS_ASSUME_NONNULL_END
|