Created
May 30, 2018 13:02
-
-
Save HigoRibeiro/3aa5e40ff03ffa13aa6cdcd3c814a4ec 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/Page1.js | |
import React from 'react'; | |
import { View, Button, Text } from 'react-native'; | |
const Page1 = ({ navigation }) => ( | |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | |
<Text>Home ;D</Text> | |
<Button | |
title="Ir para About" | |
onPress={() => navigation.navigate('About') } | |
/> | |
</View> | |
); | |
Page1.navigationOptions = { | |
title: 'Home', | |
} | |
export default Page1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment