-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (32 loc) · 971 Bytes
/
App.js
File metadata and controls
35 lines (32 loc) · 971 Bytes
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
28
29
30
31
32
33
34
35
import { NavigationContainer } from '@react-navigation/native'
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import { Icon } from '@rneui/themed'
import Login from './screens/Login'
import PhotoList from './screens/PhotoList'
const Tab = createBottomTabNavigator()
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator
screenOptions={() => ({
tabBarActiveTintColor: 'tomato',
tabBarInactiveTintColor: 'gray',
})}>
<Tab.Screen
name='Home'
component={PhotoList}
options={() => ({
tabBarIcon: () => <Icon name='house' size='20' />,
})}
/>
<Tab.Screen
name='Login'
component={Login}
options={() => ({
tabBarIcon: () => <Icon name='sc-telegram' type='evilicon' size='20' />,
})}
/>
</Tab.Navigator>
</NavigationContainer>
)
}