RCTRefreshControlManager.m 617 B

123456789101112131415161718192021222324252627
  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 "RCTRefreshControlManager.h"
  8. #import "RCTRefreshControl.h"
  9. @implementation RCTRefreshControlManager
  10. RCT_EXPORT_MODULE()
  11. - (UIView *)view
  12. {
  13. return [RCTRefreshControl new];
  14. }
  15. RCT_EXPORT_VIEW_PROPERTY(onRefresh, RCTDirectEventBlock)
  16. RCT_EXPORT_VIEW_PROPERTY(refreshing, BOOL)
  17. RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
  18. RCT_EXPORT_VIEW_PROPERTY(title, NSString)
  19. RCT_EXPORT_VIEW_PROPERTY(titleColor, UIColor)
  20. @end