UIView+ComponentViewProtocol.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <UIKit/UIKit.h>
  8. #import <React/RCTComponentViewProtocol.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * Default implementation of RCTComponentViewProtocol.
  12. */
  13. @interface UIView (ComponentViewProtocol) <RCTComponentViewProtocol>
  14. + (std::vector<facebook::react::ComponentDescriptorProvider>)supplementalComponentDescriptorProviders;
  15. - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
  16. - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
  17. - (void)updateProps:(facebook::react::Props::Shared const &)props
  18. oldProps:(facebook::react::Props::Shared const &)oldProps;
  19. - (void)updateEventEmitter:(facebook::react::EventEmitter::Shared const &)eventEmitter;
  20. - (void)updateState:(facebook::react::State::Shared const &)state
  21. oldState:(facebook::react::State::Shared const &)oldState;
  22. - (void)updateLayoutMetrics:(facebook::react::LayoutMetrics const &)layoutMetrics
  23. oldLayoutMetrics:(facebook::react::LayoutMetrics const &)oldLayoutMetrics;
  24. - (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask;
  25. - (void)prepareForRecycle;
  26. - (facebook::react::SharedProps)props;
  27. @end
  28. NS_ASSUME_NONNULL_END