RCTBaseTextShadowView.h 745 B

123456789101112131415161718192021222324252627
  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 "RCTTextAttributes.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName;
  11. @interface RCTBaseTextShadowView : RCTShadowView {
  12. @protected NSAttributedString *_Nullable cachedAttributedText;
  13. @protected RCTTextAttributes *_Nullable cachedTextAttributes;
  14. }
  15. @property (nonatomic, strong) RCTTextAttributes *textAttributes;
  16. - (NSAttributedString *)attributedTextWithBaseTextAttributes:(nullable RCTTextAttributes *)baseTextAttributes;
  17. @end
  18. NS_ASSUME_NONNULL_END