RCTRefreshableProtocol.h 502 B

1234567891011121314151617181920
  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 <React/RCTComponent.h>
  8. #import <UIKit/UIKit.h>
  9. /**
  10. * Protocol used to dispatch commands in `RCTRefreshControlManager.h`.
  11. * This is in order to support commands for both Paper and Fabric components
  12. * during migration.
  13. */
  14. @protocol RCTRefreshableProtocol
  15. - (void)setRefreshing:(BOOL)refreshing;
  16. @end