Commit 988edf75 authored by Esala Senrathna's avatar Esala Senrathna

connecting object detection

parent 3fbde524
......@@ -16,6 +16,7 @@
"expo-av": "~13.2.1",
"expo-camera": "~13.2.1",
"expo-file-system": "~15.2.2",
"expo-linking": "^4.0.1",
"expo-screen-orientation": "~5.1.1",
"expo-status-bar": "~1.4.4",
"react": "18.2.0",
......@@ -5579,6 +5580,11 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz",
"integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q=="
},
"node_modules/@types/qs": {
"version": "6.9.7",
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",
"integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw=="
},
"node_modules/@types/stack-utils": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz",
......@@ -7907,6 +7913,30 @@
"expo": "*"
}
},
"node_modules/expo-linking": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/expo-linking/-/expo-linking-4.1.0.tgz",
"integrity": "sha512-XDeBs2UuaO982spQyyVS0h7fk1UNNf6GXoqtChm2li5a7ZeeLue8btUFTZJIc3758Z5mejfDoGIgK48Rs0T3ow==",
"dependencies": {
"@types/qs": "^6.9.7",
"expo-constants": "~14.3.0",
"invariant": "^2.2.4",
"qs": "^6.11.0",
"url-parse": "^1.5.9"
}
},
"node_modules/expo-linking/node_modules/expo-constants": {
"version": "14.3.0",
"resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-14.3.0.tgz",
"integrity": "sha512-O8b+mZlPXZGH4wLLd+jMihGD0ZSMJRSmSsmcG7T60jHU3Dw4yDIuzHM/wMoBoL1pxLIbEwvcwDj0w8c+Sn+1sQ==",
"dependencies": {
"@expo/config": "~8.0.0",
"uuid": "^3.3.2"
},
"peerDependencies": {
"expo": "*"
}
},
"node_modules/expo-modules-autolinking": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-1.2.0.tgz",
......@@ -19457,6 +19487,11 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz",
"integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q=="
},
"@types/qs": {
"version": "6.9.7",
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",
"integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw=="
},
"@types/stack-utils": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz",
......@@ -21241,6 +21276,29 @@
"integrity": "sha512-hqeCnb4033TyuZaXs93zTK7rjVJ3bywXATyMmKmKkLEsH2PKBAl/VmjlCOPQL/2Ncqz6aj7Wo//tjeJTARBD4g==",
"requires": {}
},
"expo-linking": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/expo-linking/-/expo-linking-4.1.0.tgz",
"integrity": "sha512-XDeBs2UuaO982spQyyVS0h7fk1UNNf6GXoqtChm2li5a7ZeeLue8btUFTZJIc3758Z5mejfDoGIgK48Rs0T3ow==",
"requires": {
"@types/qs": "^6.9.7",
"expo-constants": "~14.3.0",
"invariant": "^2.2.4",
"qs": "^6.11.0",
"url-parse": "^1.5.9"
},
"dependencies": {
"expo-constants": {
"version": "14.3.0",
"resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-14.3.0.tgz",
"integrity": "sha512-O8b+mZlPXZGH4wLLd+jMihGD0ZSMJRSmSsmcG7T60jHU3Dw4yDIuzHM/wMoBoL1pxLIbEwvcwDj0w8c+Sn+1sQ==",
"requires": {
"@expo/config": "~8.0.0",
"uuid": "^3.3.2"
}
}
}
},
"expo-modules-autolinking": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-1.2.0.tgz",
......@@ -15,6 +15,13 @@ const HomeScreen = ({ navigation }) => {
}
}
const openObjectDetectApp = () => {
try {
Linking.openURL("objectdetect://game");
} catch (error) {
console.log("error on open Object detect app "+error);
}
}
return (
<View style={styles.container}>
......@@ -32,7 +39,7 @@ const HomeScreen = ({ navigation }) => {
<Text style={styles.buttonText}>Quiz River</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button3} onPress={() => navigation.navigate('ObjectExplore')}>
<TouchableOpacity style={styles.button3} onPress={() => openObjectDetectApp()}>
<Image source={require('./assets/home/balloon.png')} style={styles.buttonImage} resizeMode="cover" />
<Text style={styles.buttonText}>Explore</Text>
</TouchableOpacity>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment