Commit 1cc146cc authored by Devin B's avatar Devin B

Feature_add_updated

parent b2034fff
......@@ -12,7 +12,7 @@ export default {
sk_5: require('../assets/sk_5.png'),
sk_8: require('../assets/sk_8.png'),
sk_9: require('../assets/sk_9.png'),
sk_14: require('../assets/sk_14.png'),
sk_14: require('../assets/sk_14.jpg'),
sk_15: require('../assets/sk_15.png'),
sk_16: require('../assets/sk_16.png'),
};
......@@ -79,7 +79,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if (toSkinRisk) {
navigation.navigate(ROUTES.SKIN_RISK);
} else {
navigation.navigate(ROUTES.SKIN_UPLOAD);
navigation.navigate(ROUTES.SKIN_INFO);
}
};
......
......@@ -73,7 +73,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if (toSkinRisk) {
navigation.navigate(ROUTES.SKIN_RISK);
} else {
navigation.navigate(ROUTES.SKIN_UPLOAD);
navigation.navigate(ROUTES.SKIN_INFO);
}
};
......
......@@ -69,7 +69,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if (toSkinRisk) {
navigation.navigate(ROUTES.SKIN_RISK);
} else {
navigation.navigate(ROUTES.SKIN_UPLOAD);
navigation.navigate(ROUTES.SKIN_INFO);
}
};
......
......@@ -64,7 +64,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if (toSkinRisk) {
navigation.navigate(ROUTES.SKIN_RISK);
} else {
navigation.navigate(ROUTES.SKIN_UPLOAD);
navigation.navigate(ROUTES.SKIN_INFO);
}
};
......
......@@ -155,7 +155,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
<Button
title="Continue for more information"
style={styles.nextButton}
onPress={() => navigation.navigate(ROUTES.SKIN_VIDEO2)}
onPress={() => navigation.navigate(ROUTES.SKIN_INFO)}
/>
</ScrollView>
</SafeAreaView>
......
......@@ -62,7 +62,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if (toSkinRisk) {
navigation.navigate(ROUTES.SKIN_RISK);
} else {
navigation.navigate(ROUTES.SKIN_UPLOAD);
navigation.navigate(ROUTES.SKIN_INFO);
}
};
......
......@@ -25,7 +25,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
</Text>
<Text style={styles.subTopicText}>Why High Risk ?</Text>
<View style={styles.audioPlayerContainer}>
<Video
{/* <Video
source={require("./skinassets/pause.png")}
style={styles.audioPlayer}
controls={true}
......@@ -35,7 +35,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
repeat={true}
onLoad={() => setAudioPaused(false)}
/>
/> */}
</View>
<Image style={styles.babyImage} source={IMGS.sk_14} />
......@@ -45,10 +45,10 @@ const RiskEvaluationScreen = ({ navigation }) => {
</View>
</View>
<View style={styles.bottomContainer}>
<Button
<Button
title="Continue for more information"
style={styles.nextButton}
onPress={handleContinue}
onPress={() => navigation.navigate(ROUTES.SKIN_INFO)}
/>
</View>
</View>
......
......@@ -143,7 +143,7 @@ const Camera = ({ navigation }) => {
<Button
title="Continue for more information"
style={styles.nextButton}
onPress={() => navigation.navigate(ROUTES.SKIN_INFO)}
onPress={handleContinue}
/>
</View>
</View>
......
......@@ -40,18 +40,6 @@ const Additionalinformation = ({ navigation }) => {
}));
};
const handleSubmit = () => {
// Checking for specific symptoms that lead to SKIN_RISK
const skinRiskSymptoms = ['symptom3', 'symptom5', 'symptom4'];
const toSkinRisk = skinRiskSymptoms.some(symptom => selectedSymptoms[symptom]);
// Navigate based on condition
if (toSkinRisk) {
navigation.navigate(ROUTES.SKIN_RISK);
} else {
navigation.navigate(ROUTES.SKIN_UPLOAD);
}
};
const toggleFullscreen = () => {
if (videoRef.current) {
......@@ -197,7 +185,7 @@ const Additionalinformation = ({ navigation }) => {
<Button
title="Continue for more information"
style={styles.nextButton}
onPress={handleSubmit}
onPress={() => navigation.navigate(ROUTES.SKIN_WELCOME)}
/>
</ScrollView>
</SafeAreaView>
......
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