/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import #import NS_ASSUME_NONNULL_BEGIN /** * Default implementation of RCTComponentViewProtocol. */ @interface UIView (ComponentViewProtocol) + (std::vector)supplementalComponentDescriptorProviders; - (void)mountChildComponentView:(UIView *)childComponentView index:(NSInteger)index; - (void)unmountChildComponentView:(UIView *)childComponentView index:(NSInteger)index; - (void)updateProps:(facebook::react::Props::Shared const &)props oldProps:(facebook::react::Props::Shared const &)oldProps; - (void)updateEventEmitter:(facebook::react::EventEmitter::Shared const &)eventEmitter; - (void)updateState:(facebook::react::State::Shared const &)state oldState:(facebook::react::State::Shared const &)oldState; - (void)updateLayoutMetrics:(facebook::react::LayoutMetrics const &)layoutMetrics oldLayoutMetrics:(facebook::react::LayoutMetrics const &)oldLayoutMetrics; - (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask; - (void)prepareForRecycle; - (facebook::react::Props::Shared)props; - (void)setIsJSResponder:(BOOL)isJSResponder; - (void)setPropKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN:(nullable NSSet *)props; - (nullable NSSet *)propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN; - (void)updateClippedSubviewsWithClipRect:(CGRect)clipRect relativeToView:(UIView *)clipView; @end NS_ASSUME_NONNULL_END