RCTRootShadowView.h 892 B

12345678910111213141516171819202122232425262728293031323334
  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 <yoga/YGEnums.h>
  9. @interface RCTRootShadowView : RCTShadowView
  10. /**
  11. * Minimum size to layout all views.
  12. * Defaults to CGSizeZero
  13. */
  14. @property (nonatomic, assign) CGSize minimumSize;
  15. /**
  16. * Available size to layout all views.
  17. * Defaults to {INFINITY, INFINITY}
  18. */
  19. @property (nonatomic, assign) CGSize availableSize;
  20. /**
  21. * Layout direction (LTR or RTL) inherited from native environment and
  22. * is using as a base direction value in layout engine.
  23. * Defaults to value inferred from current locale.
  24. */
  25. @property (nonatomic, assign) YGDirection baseDirection;
  26. - (void)layoutWithAffectedShadowViews:(NSHashTable<RCTShadowView *> *)affectedShadowViews;
  27. @end