RCTMountingManagerDelegate.h 930 B

12345678910111213141516171819202122232425262728293031323334353637
  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/RCTPrimitives.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class RCTMountingManager;
  11. /**
  12. * MountingManager's delegate.
  13. */
  14. @protocol RCTMountingManagerDelegate <NSObject>
  15. /*
  16. * Called right *before* execution of mount items which affect a Surface with
  17. * given `rootTag`.
  18. * Always called on the main queue.
  19. */
  20. - (void)mountingManager:(RCTMountingManager *)mountingManager willMountComponentsWithRootTag:(ReactTag)MountingManager;
  21. /*
  22. * Called right *after* execution of mount items which affect a Surface with
  23. * given `rootTag`.
  24. * Always called on the main queue.
  25. */
  26. - (void)mountingManager:(RCTMountingManager *)mountingManager didMountComponentsWithRootTag:(ReactTag)rootTag;
  27. @end
  28. NS_ASSUME_NONNULL_END