A
A
Albert Ushakov2021-02-22 01:43:11
typescript
Albert Ushakov, 2021-02-22 01:43:11

How to add 2 Navigation React native views in one window?

There are 2 types of navigation TabNavigator and DrawerNavigator.

import TabNavigation from './Screen/TabNavigation';
import DrawerNavigation from './Screen/DrawerNavigation';

//Далее добавляю их, в теории
<Stack.Screen
          name="TabNavigation"
          component={TabNavigation}
        />
    
        <Stack.Screen
          name="DrawerNavigationRoutes"
          component={DrawerNavigationRoutes}
        />

How to display them in one window, I don’t understand how to connect them. Available only individually.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denioo, 2021-02-22
@Denioo

Use https://reactnavigation.org/docs/tab-based-navigation/
Wrap the entire construct in<>...</>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question