mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
454aa02210
Summary: In some cases, the custom implementation of this prop is undesirable, so this allows to turn it off. Reviewed By: yungsters Differential Revision: D9759228 fbshipit-source-id: 4f61cd900c2da9046977c11a61606a4f5f961177
31 lines
602 B
Objective-C
31 lines
602 B
Objective-C
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "RCTSafeAreaViewManager.h"
|
|
|
|
#import "RCTSafeAreaShadowView.h"
|
|
#import "RCTSafeAreaView.h"
|
|
#import "RCTUIManager.h"
|
|
|
|
@implementation RCTSafeAreaViewManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(emulateUnlessSupported, BOOL)
|
|
|
|
- (UIView *)view
|
|
{
|
|
return [[RCTSafeAreaView alloc] initWithBridge:self.bridge];
|
|
}
|
|
|
|
- (RCTSafeAreaShadowView *)shadowView
|
|
{
|
|
return [RCTSafeAreaShadowView new];
|
|
}
|
|
|
|
@end
|