forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Part of facebook#22990 Changelog: ---------- [iOS] [Changed] - Create individual `RCTSafeAreaViewNativeComponent` JS file from `SafeAreaView` with flow typing. Pull Request resolved: facebook#23006 Reviewed By: TheSavior Differential Revision: D13690683 Pulled By: rickhanlonii fbshipit-source-id: 7928fabf0264a6269a41148432f604e82d9b3920
- Loading branch information
1 parent
c669734
commit 40d2097
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters