RCTComponentViewClassDescriptor.h 773 B

1234567891011121314151617181920212223242526272829303132
  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. * Holds a native view class and a set of attributes associated with it.
  12. */
  13. class RCTComponentViewClassDescriptor final {
  14. public:
  15. /*
  16. * Associated (and owned) native view class.
  17. */
  18. Class<RCTComponentViewProtocol> viewClass;
  19. /*
  20. * Indicates a requirement to call on the view methods from
  21. * `RCTMountingTransactionObserving` protocol.
  22. */
  23. bool observesMountingTransactionWillMount{false};
  24. bool observesMountingTransactionDidMount{false};
  25. };
  26. NS_ASSUME_NONNULL_END