RCTSurfaceRootShadowView.h 1022 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 <React/RCTShadowView.h>
  8. #import <React/RCTSurfaceRootShadowViewDelegate.h>
  9. #import <yoga/YGEnums.h>
  10. @interface RCTSurfaceRootShadowView : RCTShadowView
  11. @property (nonatomic, assign, readonly) CGSize minimumSize;
  12. @property (nonatomic, assign, readonly) CGSize maximumSize;
  13. - (void)setMinimumSize:(CGSize)size maximumSize:(CGSize)maximumSize;
  14. @property (nonatomic, assign, readonly) CGSize intrinsicSize;
  15. @property (nonatomic, weak) id<RCTSurfaceRootShadowViewDelegate> delegate;
  16. /**
  17. * Layout direction (LTR or RTL) inherited from native environment and
  18. * is using as a base direction value in layout engine.
  19. * Defaults to value inferred from current locale.
  20. */
  21. @property (nonatomic, assign) YGDirection baseDirection;
  22. - (void)layoutWithAffectedShadowViews:(NSHashTable<RCTShadowView *> *)affectedShadowViews;
  23. @end