-
Notifications
You must be signed in to change notification settings - Fork 1
/
LoggedInPage .jsx
41 lines (40 loc) · 951 Bytes
/
LoggedInPage .jsx
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
import React from "react";
import {
View,
Text,
Image,
StyleSheet,
ActivityIndicator,
Button,
} from "react-native";
const LoggedInPage = (props) => {
return props.photoUrl ? (
<View style={styles.container}>
<Text style={styles.header}>Welcome:{props.name}</Text>
<Image style={styles.image} source={{ uri: props.photoUrl }} />
<Button title="logout" onPress={() => props.logOut("")} />
</View>
) : (
<ActivityIndicator />
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
header: {
fontSize: 25,
},
image: {
marginTop: 15,
width: 150,
height: 150,
borderColor: "rgba(0,0,0,0.2)",
borderWidth: 3,
borderRadius: 150,
},
});
export default LoggedInPage;