Created
February 17, 2020 12:09
-
-
Save AllGistsEqual/778f3fd9851730bbfc74a9f8f4dc04b7 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
import React from 'react' | |
import { Text, Button } from 'react-native' | |
import PropTypes from 'prop-types' | |
import DefaultPage from '../../components/DefaultPage' | |
const SceneHome = ({ navigation }) => ( | |
<DefaultPage> | |
<Text> | |
Home | |
</Text> | |
<Button title="Settings" onPress={() => navigation.navigate('Settings')} /> | |
<Button title="Play the game" onPress={() => navigation.navigate('GameHome')} /> | |
</DefaultPage> | |
) | |
SceneHome.propTypes = { | |
navigation: PropTypes.object.isRequired, | |
} | |
export default SceneHome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment