-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
109 lines (102 loc) · 2.81 KB
/
App.js
File metadata and controls
109 lines (102 loc) · 2.81 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import * as React from 'react';
import {Image} from 'react-native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {NavigationContainer} from '@react-navigation/native';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import LogWeb from './component/LogWeb';
import Home from './component/Home';
import Profile from './component/Profile';
import SubReddit from './component/subreddit';
const Stack = createNativeStackNavigator();
const Tabs = createBottomTabNavigator();
function App() {
return (
<NavigationContainer>
<Tabs.Navigator>
<Tabs.Screen
options={{
headerShown: false,
tabBarIcon: ({focused, color, size}) =>
focused ? (
<Image
source={require('./assets/home_click.png')}
style={{
width: 25,
height: 25,
}}
/>
) : (
<Image
source={require('./assets/home.png')}
style={{
width: 25,
height: 25,
}}
/>
),
}}
name="Home"
component={Home}
/>
<Tabs.Screen
options={{
headerShown: false,
tabBarIcon: ({focused}) =>
focused ? (
<Image
source={require('./assets/search_blue.png')}
style={{
width: 30,
height: 30,
}}
/>
) : (
<Image
source={require('./assets/search_black.png')}
style={{
width: 25,
height: 25,
}}
/>
),
}}
name="Search"
component={SubReddit}
/>
<Tabs.Screen
options={{
headerShown: false,
tabBarIcon: ({focused, color, size}) =>
focused ? (
<Image
source={require('./assets/profile_click.png')}
style={{
width: 25,
height: 25,
}}
/>
) : (
<Image
source={require('./assets/profile.png')}
style={{
width: 25,
height: 25,
}}
/>
),
}}
name="Account"
component={LogWeb}
/>
</Tabs.Navigator>
</NavigationContainer>
);
}
export default App;