Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created September 11, 2017 17:58
Show Gist options
  • Save diego3g/4052d231c3ad60fff9ced46e18c1f32f to your computer and use it in GitHub Desktop.
Save diego3g/4052d231c3ad60fff9ced46e18c1f32f 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";
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={() => {}}
/>
</Card>
</View>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment