mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-17 00:56:20 +08:00
cleanup dependencies, SafeAreaView moved to native
This commit is contained in:
@@ -31,12 +31,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-navigation/core": "^3.0.0-alpha.4",
|
||||
"@react-navigation/native": "^3.0.0-alpha.3",
|
||||
"react-lifecycles-compat": "^3",
|
||||
"react-native-gesture-handler": "^1.0.0",
|
||||
"react-native-safe-area-view": "0.11.0",
|
||||
"react-native-screens": "^1.0.0-alpha.12",
|
||||
"react-navigation-deprecated-tab-navigator": "1.3.0",
|
||||
"@react-navigation/native": "^3.0.0-alpha.5",
|
||||
"react-navigation-drawer": "1.0.0-alpha.3",
|
||||
"react-navigation-stack": "1.0.0-alpha.14",
|
||||
"react-navigation-tabs": "0.8.2"
|
||||
|
||||
7
src/react-navigation.js
vendored
7
src/react-navigation.js
vendored
@@ -21,6 +21,10 @@ module.exports = {
|
||||
return require('@react-navigation/native').withOrientation;
|
||||
},
|
||||
|
||||
get SafeAreaView() {
|
||||
return require('@react-navigation/native').SafeAreaView;
|
||||
},
|
||||
|
||||
// Core
|
||||
get createNavigator() {
|
||||
return require('@react-navigation/core').createNavigator;
|
||||
@@ -128,9 +132,6 @@ module.exports = {
|
||||
get StackViewTransitionConfigs() {
|
||||
return require('react-navigation-stack').StackViewTransitionConfigs;
|
||||
},
|
||||
get SafeAreaView() {
|
||||
return require('react-native-safe-area-view').default;
|
||||
},
|
||||
|
||||
// Header
|
||||
get Header() {
|
||||
|
||||
Reference in New Issue
Block a user