2015-01-30 01:10:49 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Contains any methods related to scrolling. Any `RCTView` that has scrolling
|
|
|
|
* features should implement these methods.
|
|
|
|
*/
|
|
|
|
@protocol RCTScrollableProtocol
|
|
|
|
|
2015-03-11 19:29:36 +00:00
|
|
|
@property (nonatomic, weak) NSObject<UIScrollViewDelegate> *nativeMainScrollDelegate;
|
2015-01-30 01:10:49 +00:00
|
|
|
@property (nonatomic, readonly) CGSize contentSize;
|
|
|
|
|
|
|
|
- (void)scrollToOffset:(CGPoint)offset;
|
|
|
|
- (void)scrollToOffset:(CGPoint)offset animated:(BOOL)animated;
|
|
|
|
- (void)zoomToRect:(CGRect)rect animated:(BOOL)animated;
|
|
|
|
|
|
|
|
@end
|