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 lastReportedIndex; 14 @property(nonatomic) NSInteger destinationIndex; 15 @property(nonatomic) NSInteger currentIndex; 16 @property(nonatomic) NSInteger pageMargin; 17 @property(nonatomic, readonly) BOOL scrollEnabled; 18 @property(nonatomic, readonly) UIScrollViewKeyboardDismissMode dismissKeyboard; 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 @property(nonatomic) NSString* layoutDirection; 25 @property(nonatomic, assign) BOOL animating; 26 27 - (void)goTo:(NSInteger)index animated:(BOOL)animated; 28 - (void)shouldScroll:(BOOL)scrollEnabled; 29 - (void)shouldDismissKeyboard:(NSString *)dismissKeyboard; 30 31 @end 32 33 NS_ASSUME_NONNULL_END 34