RCTSafeAreaViewManager.m 601 B

123456789101112131415161718192021222324252627282930
  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 "RCTSafeAreaViewManager.h"
  8. #import "RCTSafeAreaShadowView.h"
  9. #import "RCTSafeAreaView.h"
  10. #import "RCTUIManager.h"
  11. @implementation RCTSafeAreaViewManager
  12. RCT_EXPORT_MODULE()
  13. RCT_EXPORT_VIEW_PROPERTY(emulateUnlessSupported, BOOL)
  14. - (UIView *)view
  15. {
  16. return [[RCTSafeAreaView alloc] initWithBridge:self.bridge];
  17. }
  18. - (RCTSafeAreaShadowView *)shadowView
  19. {
  20. return [RCTSafeAreaShadowView new];
  21. }
  22. @end