mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-30 13:22:13 +08:00
chore: navigation-ex -> react-navigation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navigation-ex/drawer",
|
||||
"version": "0.0.1",
|
||||
"name": "@react-navigation/drawer",
|
||||
"version": "5.0.0-alpha.0",
|
||||
"license": "MIT",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"react-native": "src/index.tsx",
|
||||
@@ -15,8 +15,8 @@
|
||||
"clean": "del lib"
|
||||
},
|
||||
"dependencies": {
|
||||
"@navigation-ex/core": "^0.0.1",
|
||||
"@navigation-ex/routers": "^0.0.1",
|
||||
"@react-navigation/core": "^5.0.0-alpha.0",
|
||||
"@react-navigation/routers": "^5.0.0-alpha.0",
|
||||
"react-native-safe-area-view": "^0.14.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -3,12 +3,12 @@ import {
|
||||
createNavigator,
|
||||
useNavigationBuilder,
|
||||
DefaultNavigatorOptions,
|
||||
} from '@navigation-ex/core';
|
||||
} from '@react-navigation/core';
|
||||
import {
|
||||
DrawerNavigationState,
|
||||
DrawerRouterOptions,
|
||||
DrawerRouter,
|
||||
} from '@navigation-ex/routers';
|
||||
} from '@react-navigation/routers';
|
||||
|
||||
import DrawerView from '../views/DrawerView';
|
||||
import { DrawerNavigationOptions, DrawerNavigationConfig } from '../types';
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
NavigationProp,
|
||||
Descriptor,
|
||||
NavigationHelpers,
|
||||
} from '@navigation-ex/core';
|
||||
import { DrawerNavigationState } from '@navigation-ex/routers';
|
||||
} from '@react-navigation/core';
|
||||
import { DrawerNavigationState } from '@react-navigation/routers';
|
||||
import { PanGestureHandler } from 'react-native-gesture-handler';
|
||||
|
||||
export type Scene = {
|
||||
|
||||
@@ -6,8 +6,11 @@ import {
|
||||
ParamListBase,
|
||||
Route,
|
||||
BaseActions,
|
||||
} from '@navigation-ex/core';
|
||||
import { DrawerActions, DrawerNavigationState } from '@navigation-ex/routers';
|
||||
} from '@react-navigation/core';
|
||||
import {
|
||||
DrawerActions,
|
||||
DrawerNavigationState,
|
||||
} from '@react-navigation/routers';
|
||||
|
||||
import { Scene, ContentComponentProps, DrawerDescriptorMap } from '../types';
|
||||
|
||||
|
||||
@@ -4,8 +4,11 @@ import { Dimensions, StyleSheet, I18nManager, Platform } from 'react-native';
|
||||
import { ScreenContainer } from 'react-native-screens';
|
||||
import SafeAreaView from 'react-native-safe-area-view';
|
||||
import { PanGestureHandler, ScrollView } from 'react-native-gesture-handler';
|
||||
import { ParamListBase, NavigationHelpers } from '@navigation-ex/core';
|
||||
import { DrawerNavigationState, DrawerActions } from '@navigation-ex/routers';
|
||||
import { ParamListBase, NavigationHelpers } from '@react-navigation/core';
|
||||
import {
|
||||
DrawerNavigationState,
|
||||
DrawerActions,
|
||||
} from '@react-navigation/routers';
|
||||
|
||||
import DrawerSidebar from './DrawerSidebar';
|
||||
import DrawerGestureContext from '../utils/DrawerGestureContext';
|
||||
|
||||
Reference in New Issue
Block a user