RCTRootShadowView.h 771 B

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