RNCSafeAreaViewManager.m 455B

123456789101112131415161718192021222324
  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 "RNCSafeAreaViewManager.h"
  8. #import "RNCSafeAreaView.h"
  9. @implementation RNCSafeAreaViewManager
  10. RCT_EXPORT_MODULE(RNCSafeAreaView)
  11. RCT_EXPORT_VIEW_PROPERTY(onInsetsChange, RCTBubblingEventBlock)
  12. - (UIView *)view
  13. {
  14. return [RNCSafeAreaView new];
  15. }
  16. @end