28 lines
879 B
Objective-C
28 lines
879 B
Objective-C
#ifdef RCT_NEW_ARCH_ENABLED
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <Foundation/Foundation.h>
|
|
#import <React/RCTViewComponentView.h>
|
|
#import "UIViewController+CreateExtension.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface LEGACY_RNCPagerViewComponentView : RCTViewComponentView <UIPageViewControllerDataSource, UIPageViewControllerDelegate, UIScrollViewDelegate>
|
|
|
|
@property(strong, nonatomic, readonly) UIPageViewController *nativePageViewController;
|
|
@property(nonatomic, strong) NSMutableArray<UIViewController *> *nativeChildrenViewControllers;
|
|
@property(nonatomic) NSInteger initialPage;
|
|
@property(nonatomic) NSInteger currentIndex;
|
|
@property(nonatomic) NSInteger destinationIndex;
|
|
@property(nonatomic) NSString* layoutDirection;
|
|
@property(nonatomic) BOOL overdrag;
|
|
|
|
- (void)setPage:(NSInteger)number;
|
|
- (void)setPageWithoutAnimation:(NSInteger)number;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif
|