2024-05-02 15:08:24 +00:00
|
|
|
#import <React/RCTEventDispatcher.h>
|
|
|
|
#import <React/RCTShadowView.h>
|
|
|
|
#import <React/UIView+React.h>
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2024-11-20 14:28:34 +00:00
|
|
|
@interface LEGACY_RNCPagerView: UIView
|
2024-05-02 15:08:24 +00:00
|
|
|
|
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher;
|
|
|
|
|
|
|
|
@property(nonatomic) NSInteger initialPage;
|
|
|
|
@property(nonatomic) NSInteger lastReportedIndex;
|
|
|
|
@property(nonatomic) NSInteger destinationIndex;
|
|
|
|
@property(nonatomic) NSInteger currentIndex;
|
|
|
|
@property(nonatomic) NSInteger pageMargin;
|
|
|
|
@property(nonatomic, readonly) BOOL scrollEnabled;
|
2024-11-20 14:28:34 +00:00
|
|
|
#if !TARGET_OS_VISION
|
2024-05-02 15:08:24 +00:00
|
|
|
@property(nonatomic, readonly) UIScrollViewKeyboardDismissMode dismissKeyboard;
|
2024-11-20 14:28:34 +00:00
|
|
|
#endif
|
2024-05-02 15:08:24 +00:00
|
|
|
@property(nonatomic) UIPageViewControllerNavigationOrientation orientation;
|
|
|
|
@property(nonatomic, copy) RCTDirectEventBlock onPageSelected;
|
|
|
|
@property(nonatomic, copy) RCTDirectEventBlock onPageScroll;
|
|
|
|
@property(nonatomic, copy) RCTDirectEventBlock onPageScrollStateChanged;
|
|
|
|
@property(nonatomic) BOOL overdrag;
|
|
|
|
@property(nonatomic) NSString* layoutDirection;
|
|
|
|
@property(nonatomic, assign) BOOL animating;
|
|
|
|
|
|
|
|
- (void)goTo:(NSInteger)index animated:(BOOL)animated;
|
|
|
|
- (void)shouldScroll:(BOOL)scrollEnabled;
|
|
|
|
- (void)shouldDismissKeyboard:(NSString *)dismissKeyboard;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|