-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppNavigator.jsx
27 lines (24 loc) · 1.25 KB
/
AppNavigator.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
import { StackedScreens } from './src/components/StackedScreens.jsx';
import { ListAndDetails } from './src/components/ListAndDetailsScreen.jsx';
import { ThirdScreen } from './src/components/ThirdScreen.jsx';
import {useEffect} from 'react';
export function AppNavigator(){
const Tab = createBottomTabNavigator();
useEffect(() => {
console.log('AppNavigator rendered')
})
return(
<NavigationContainer>
{/*<Tab.Navigator screenOptions={{headerShown: false}}>*/}
<Tab.Navigator>
<Tab.Screen name="StackedScreens" component={StackedScreens} options={{ title: 'Home', headerShown: false}}/>
<Tab.Screen name="Reading List Screens" component={ListAndDetails} options={{ title: `Reading List`, headerShown: false}} />
<Tab.Screen name="Screen 3" component={ThirdScreen} options={{ title: 'DocumentPicker'}} />
</Tab.Navigator>
</NavigationContainer>
)
}