-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
51 lines (45 loc) · 1.69 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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createStackNavigator } from '@react-navigation/stack';
import { StatusBar, StyleSheet } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { ParamList } from './global/types';
import { colors, fontSizes } from './global/styles';
import WalletList from './screens/WalletList';
import Overview from './screens/Overview';
import NewWallet from './screens/NewWallet';
import InsideWallet from './screens/InsideWallet';
const Stack = createStackNavigator<ParamList>();
const Tab = createBottomTabNavigator<ParamList>();
const homeBottomTab = () => (
<Tab.Navigator tabBarOptions={{ style: styles.bottomTabBar, labelStyle: styles.bottomTabText }}>
<Tab.Screen name="walletList" component={WalletList} />
<Tab.Screen name="overview" component={Overview} />
</Tab.Navigator>
);
const App = () => (
<SafeAreaView style={styles.container}>
<NavigationContainer>
<Stack.Navigator screenOptions={{ header: () => null }}>
<Stack.Screen name="home" component={homeBottomTab} />
<Stack.Screen name="insideWallet" component={InsideWallet} />
<Stack.Screen name="newWallet" component={NewWallet} />
</Stack.Navigator>
</NavigationContainer>
<StatusBar barStyle="light-content" />
</SafeAreaView>
);
const styles = StyleSheet.create({
container: {
flex: 1, backgroundColor: colors.darkBlack,
},
bottomTabBar: {
backgroundColor: colors.darkBlack,
},
bottomTabText: {
fontSize: fontSizes.small,
fontWeight: '800',
},
});
export default App;