Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created February 17, 2020 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllGistsEqual/778f3fd9851730bbfc74a9f8f4dc04b7 to your computer and use it in GitHub Desktop.
Save AllGistsEqual/778f3fd9851730bbfc74a9f8f4dc04b7 to your computer and use it in GitHub Desktop.
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