RCTScrollEvent.h 894 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. #import <React/RCTEventDispatcher.h>
  9. @interface RCTScrollEvent : NSObject <RCTEvent>
  10. - (instancetype)initWithEventName:(NSString *)eventName
  11. reactTag:(NSNumber *)reactTag
  12. scrollViewContentOffset:(CGPoint)scrollViewContentOffset
  13. scrollViewContentInset:(UIEdgeInsets)scrollViewContentInset
  14. scrollViewContentSize:(CGSize)scrollViewContentSize
  15. scrollViewFrame:(CGRect)scrollViewFrame
  16. scrollViewZoomScale:(CGFloat)scrollViewZoomScale
  17. userData:(NSDictionary *)userData
  18. coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
  19. @end