-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
143 lines (134 loc) · 3.87 KB
/
App.tsx
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import React from 'react';
import {View, Text, TouchableOpacity} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import Icon from 'react-native-vector-icons/Ionicons';
import Chat from './src/navigation/chat';
import Internal from './src/navigation/chat/internal';
const teste = () => {
return (
<View>
<Text>Teste</Text>
</View>
);
};
const Whatsappclone: React.FC = () => {
const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator();
const StackChat = () => {
return (
<Stack.Navigator>
<Stack.Screen
name="StackConversas"
component={BottomTab}
options={{headerShown: false}}
/>
<Stack.Screen
name="Internal"
component={Internal}
options={{
headerStyle: {backgroundColor: '#171717'},
headerTintColor: '#29A4EB',
headerTitleStyle: {color: '#f5f5f5'},
headerRight: () => (
<View style={{flexDirection: 'row'}}>
<TouchableOpacity>
<Icon
style={{paddingHorizontal: 15}}
name="ios-videocam-outline"
size={32}
color={'#29A4EB'}
/>
</TouchableOpacity>
<TouchableOpacity>
<Icon name="ios-call-outline" size={28} color={'#29A4EB'} />
</TouchableOpacity>
</View>
),
// // headerTitle: () => route.params
// // title:{{data.name.toString()}}
}}
/>
</Stack.Navigator>
);
};
const BottomTab = () => {
return (
<Tab.Navigator
initialRouteName="Conversas"
screenOptions={{
tabBarStyle: {
backgroundColor: '#171717',
borderTopColor: 'transparent',
height: 60,
paddingTop: 5,
paddingBottom: 5,
},
}}>
<Tab.Screen
name="Status"
component={teste}
options={{
headerShown: false,
tabBarLabel: 'Status',
tabBarIcon: ({color, size}) => (
<Icon name="ios-sync" size={30} color={color} />
),
}}
/>
<Tab.Screen
name="Ligações"
component={teste}
options={{
headerShown: false,
tabBarLabel: 'Ligações',
tabBarIcon: ({color, size}) => (
<Icon name="ios-call-outline" size={30} color={color} />
),
}}
/>
<Tab.Screen
name="Câmera"
component={teste}
options={{
headerShown: false,
tabBarLabel: 'Câmera',
tabBarIcon: ({color, size}) => (
<Icon name="ios-camera-outline" size={30} color={color} />
),
}}
/>
<Tab.Screen
name="Conversas"
component={Chat}
options={{
headerShown: false,
tabBarLabel: 'Conversas',
tabBarIcon: ({color, size}) => (
<Icon name="ios-chatbubbles" size={30} color={color} />
),
}}
/>
<Tab.Screen
name="Configurações"
component={teste}
options={{
headerShown: false,
tabBarLabel: 'Configurações',
tabBarIcon: ({color, size}) => (
<Icon name="ios-cog-outline" size={30} color={color} />
),
}}
/>
</Tab.Navigator>
);
};
return (
<NavigationContainer>
<StackChat />
{/* <BottomTab /> */}
</NavigationContainer>
);
};
export default Whatsappclone;