2015-02-19 20:10:52 -08: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-10 19:03:59 -07:00
|
|
|
@property (nonatomic, weak) NSObject<UIScrollViewDelegate> *nativeMainScrollDelegate;
|
2015-02-19 20:10:52 -08: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
|