mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 23:28:12 +00:00
Summary: Part of #22990 Changelog: ---------- [iOS] [Changed] - Create individual `RCTSafeAreaViewNativeComponent` JS file from `SafeAreaView` with flow typing. Pull Request resolved: https://github.com/facebook/react-native/pull/23006 Reviewed By: TheSavior Differential Revision: D13690683 Pulled By: rickhanlonii fbshipit-source-id: 7928fabf0264a6269a41148432f604e82d9b3920
26 lines
639 B
JavaScript
26 lines
639 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
const requireNativeComponent = require('requireNativeComponent');
|
|
|
|
import type {ViewProps} from 'ViewPropTypes';
|
|
import type {NativeComponent} from 'ReactNative';
|
|
|
|
type NativeProps = $ReadOnly<{|
|
|
...ViewProps,
|
|
emulateUnlessSupported?: boolean,
|
|
|}>;
|
|
|
|
type RCTSafeAreaViewNativeType = Class<NativeComponent<NativeProps>>;
|
|
|
|
module.exports = ((requireNativeComponent(
|
|
'RCTSafeAreaView',
|
|
): any): RCTSafeAreaViewNativeType);
|