forked from Proder/cardTokenizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dashboard.js
40 lines (36 loc) · 1.1 KB
/
Dashboard.js
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
import React from "react";
import { Header } from "@react-navigation/elements";
import { Text, View, StyleSheet, StatusBar } from "react-native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { Button, IconButton } from "react-native-paper";
const Dashboard = ({ navigation }) => {
return (
<View style={styles.container}>
<Header label="Tokenizer" />
<Text>Click here to view your User Profile</Text>
<StatusBar barStyle={"dark-content"} />
<View style={{marginTop:30,marginBottom:30}}>
<IconButton
icon="account-box"
iconColor={`#8a2be2`}
size={50}
onPress={() => navigation.navigate('UserProfile')}
/>
</View>
<Button
color="#981ddf"
title="Card Details"
onPress={() => navigation.navigate('Card')}
>Card Details</Button>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: "center",
// justifyContent: 'center',
backgroundColor: "#307ecc",
},
});
export default Dashboard;