Всем привет, есть 3 скрина: Login, Menu, Test. при нажатии на login нужно перейти в Menu, а там drawernavigation, уже сижу 2 часа, не получается никак сделать, переход по кнопке работает, но drawernavigation а нет в menu
router.js
import { createAppContainer, createSwitchNavigator, createDrawerNavigator, createStackNavigator} from 'react-navigation';
import { Login, Menu } from '../containers';
import {Text} from 'react-native'
import React, { Component } from 'react';
import Test from './Test'
const DrawerNavigator = createDrawerNavigator({
"Test": Test
})
export default createAppContainer(createSwitchNavigator({Login, Menu, DrawerNavigator}));
Menu.js
import { createAppContainer, createSwitchNavigator, createDrawerNavigator, createStackNavigator} from 'react-navigation';
import React, { Component } from 'react';
import {View, Text} from 'react-native'
import DrawerNavigator from '../config/router'
import Test from '../config/Test'
export default class Menu extends Component{
render(){
return(
<DrawerNavigator/>
);
}
}
App.js
import React from 'react';
import { Provider } from 'react-redux';
import store from './app/store';
import Navigation from './app/config/router';
export default App = () => (
<Provider store={store}>
<Navigation />
</Provider>
);