Add routes and core views

This commit is contained in:
Paul Frazee 2022-06-09 16:32:03 -05:00
parent d6942bffab
commit fc3b2952bb
16 changed files with 293 additions and 118 deletions

17
src/screens/Home.tsx Normal file
View file

@ -0,0 +1,17 @@
import React from 'react'
import {Text, Button, View, SafeAreaView} from 'react-native'
import type {PrimaryTabScreenProps} from '../routes/types'
export const Home = ({navigation}: PrimaryTabScreenProps<'Home'>) => {
return (
<SafeAreaView style={{flex: 1}}>
<View style={{flex: 1}}>
<Text>Hello world</Text>
<Button
title="Go to Jane's profile"
onPress={() => navigation.navigate('Profile', {name: 'Jane'})}
/>
</View>
</SafeAreaView>
)
}