({navigation}: NativeStackScreenProps<ParamList>)
| 5 | import type {ParamList} from '../App'; |
| 6 | |
| 7 | const HomeScreen = ({navigation}: NativeStackScreenProps<ParamList>) => { |
| 8 | return ( |
| 9 | <View> |
| 10 | <Text style={styles.title}>React Native ML Kit</Text> |
| 11 | |
| 12 | <ListTile |
| 13 | title="Text Recognition" |
| 14 | onPress={() => navigation.navigate('TextRecognition')} |
| 15 | /> |
| 16 | <ListTile |
| 17 | title="Barcode Scanning" |
| 18 | onPress={() => navigation.navigate('BarcodeScanning')} |
| 19 | /> |
| 20 | <ListTile |
| 21 | title="Face Detection" |
| 22 | onPress={() => navigation.navigate('FaceDetection')} |
| 23 | /> |
| 24 | <ListTile |
| 25 | title="Image Labeling" |
| 26 | onPress={() => navigation.navigate('ImageLabeling')} |
| 27 | /> |
| 28 | </View> |
| 29 | ); |
| 30 | }; |
| 31 | |
| 32 | const styles = StyleSheet.create({ |
| 33 | title: { |
nothing calls this directly
no outgoing calls
no test coverage detected