mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 12:07:26 +08:00
[add] SafeAreaView component
This commit is contained in:
14
src/components/SafeAreaView/index.js
Normal file
14
src/components/SafeAreaView/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @providesModule SafeAreaView
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import View from '../View';
|
||||
export default View;
|
||||
@@ -37,6 +37,7 @@ import Modal from './components/Modal';
|
||||
import Picker from './components/Picker';
|
||||
import ProgressBar from './components/ProgressBar';
|
||||
import RefreshControl from './components/RefreshControl';
|
||||
import SafeAreaView from './components/SafeAreaView';
|
||||
import ScrollView from './components/ScrollView';
|
||||
import SectionList from './components/SectionList';
|
||||
import Slider from './components/Slider';
|
||||
@@ -101,6 +102,7 @@ export {
|
||||
Picker,
|
||||
ProgressBar,
|
||||
RefreshControl,
|
||||
SafeAreaView,
|
||||
ScrollView,
|
||||
SectionList,
|
||||
Slider,
|
||||
@@ -168,6 +170,7 @@ const ReactNative = {
|
||||
Picker,
|
||||
ProgressBar,
|
||||
RefreshControl,
|
||||
SafeAreaView,
|
||||
ScrollView,
|
||||
SectionList,
|
||||
Slider,
|
||||
|
||||
Reference in New Issue
Block a user