mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-11 09:20:54 +08:00
chore: move core/native to peerDependencies
This commit is contained in:
committed by
satyajit.happy
parent
d9f142a6fd
commit
e4caff2cee
@@ -9,8 +9,6 @@ import {
|
||||
NavigationActions,
|
||||
} from '@react-navigation/core';
|
||||
|
||||
import { createAppContainer } from '@react-navigation/native';
|
||||
|
||||
export type InjectedProps = {
|
||||
getLabelText: (props: { route: any }) => any,
|
||||
getAccessibilityLabel: (props: { route: any }) => string,
|
||||
@@ -196,8 +194,6 @@ export default function createTabNavigator(TabView: React.ComponentType<*>) {
|
||||
|
||||
return (routes: *, config: * = {}) => {
|
||||
const router = TabRouter(routes, config);
|
||||
const navigator = createNavigator(NavigationView, router, config);
|
||||
|
||||
return createAppContainer(navigator);
|
||||
return createNavigator(NavigationView, router, config);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user