RCTRawTextViewManager.m 506 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/RCTRawTextViewManager.h>
  8. #import <React/RCTRawTextShadowView.h>
  9. @implementation RCTRawTextViewManager
  10. RCT_EXPORT_MODULE(RCTRawText)
  11. - (UIView *)view
  12. {
  13. return [UIView new];
  14. }
  15. - (RCTShadowView *)shadowView
  16. {
  17. return [RCTRawTextShadowView new];
  18. }
  19. RCT_EXPORT_SHADOW_PROPERTY(text, NSString)
  20. @end