-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88417f4
commit 29b7ef4
Showing
6 changed files
with
88 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import { StatusBar } from 'expo-status-bar'; | ||
import Logo from '@/components/Logo'; | ||
|
||
// Dummy home screen for now? idk what to put here | ||
export default function HomeScreen() { | ||
return ( | ||
<View style={styles.container}> | ||
<Logo /> | ||
<Text>Home Screen!</Text> | ||
<StatusBar style="auto" /> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Pressable, Text, View } from 'react-native'; | ||
import { StatusBar } from 'expo-status-bar'; | ||
import { NativeStackScreenProps } from '@react-navigation/native-stack'; | ||
import Logo from '@/components/Logo'; | ||
import styles from './styles'; | ||
|
||
type TreeInfoPageProps = NativeStackScreenProps< | ||
RootStackParamList, | ||
'TreeInfoPage' | ||
>; | ||
|
||
export default function TreeInfoPage({ route, navigation }: TreeInfoPageProps) { | ||
// Just placeholder text for now to show that the tree ID is being passed | ||
return ( | ||
<View style={styles.container}> | ||
<Logo /> | ||
<Text>i found a tree</Text> | ||
<Text>with an id</Text> | ||
<Text>{route.params.treeId}</Text> | ||
<Pressable onPress={() => navigation.push('Scanner')}> | ||
<Text>Back to scanner</Text> | ||
</Pressable> | ||
<StatusBar style="auto" /> | ||
</View> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { StyleSheet } from 'react-native'; | ||
|
||
export default StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Not sure where to keep this stuff | ||
type RootStackParamList = { | ||
Home: undefined; | ||
Scanner: undefined; | ||
TreeInfoPage: { treeId: string }; | ||
}; |