mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
983b05441d
Summary: <SafeAreaView> renders nested content and automatically applies paddings reflect the portion of the view that is not covered by navigation bars, tab bars, toolbars, and other ancestor views. Moreover, and most importantly, Safe Area's paddings feflect physical limitation of the screen, such as rounded corners or camera notches (aka sensor housing area on iPhone X). Reviewed By: mmmulani Differential Revision: D5886411 fbshipit-source-id: 7ecc7aa34de8f5527c4e59b0fb4efba3aaea28c8
25 lines
525 B
Objective-C
25 lines
525 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <React/RCTView.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class RCTBridge;
|
|
|
|
@interface RCTSafeAreaView : RCTView
|
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|