Created
September 11, 2017 18:22
-
-
Save diego3g/0b4102950599cf6293543157738a2b75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/pages/logged.js | |
import React from "react"; | |
import { View } from "react-native"; | |
import { Card, Button, Text } from "react-native-elements"; | |
import { onSignOut } from "../services/auth"; | |
export default ({ navigation }) => ( | |
<View style={{ paddingVertical: 20 }}> | |
<Card title="John Doe"> | |
<View | |
style={{ | |
backgroundColor: "#bcbec1", | |
alignItems: "center", | |
justifyContent: "center", | |
width: 80, | |
height: 80, | |
borderRadius: 40, | |
alignSelf: "center", | |
marginBottom: 20 | |
}} | |
> | |
<Text style={{ color: "white", fontSize: 28 }}>JD</Text> | |
</View> | |
<Button | |
backgroundColor="#03A9F4" | |
title="Sair" | |
onPress={() => onSignOut().then(() => navigation.navigate("SignedOut"))} | |
/> | |
</Card> | |
</View> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment