Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created September 11, 2017 18:22
Show Gist options
  • Save diego3g/0b4102950599cf6293543157738a2b75 to your computer and use it in GitHub Desktop.
Save diego3g/0b4102950599cf6293543157738a2b75 to your computer and use it in GitHub Desktop.
// 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