Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EmidWife-New
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-005
EmidWife-New
Commits
1cc146cc
Commit
1cc146cc
authored
May 17, 2024
by
Devin B
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature_add_updated
parent
b2034fff
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
25 deletions
+13
-25
src/assets/sk_14.jpg
src/assets/sk_14.jpg
+0
-0
src/assets/sk_14.png
src/assets/sk_14.png
+0
-0
src/constants/imgs.js
src/constants/imgs.js
+1
-1
src/screens/home/skin/AdditionalSymptoms.js
src/screens/home/skin/AdditionalSymptoms.js
+1
-1
src/screens/home/skin/AdditionalSymptoms1.js
src/screens/home/skin/AdditionalSymptoms1.js
+1
-1
src/screens/home/skin/AdditionalSymptoms2.js
src/screens/home/skin/AdditionalSymptoms2.js
+1
-1
src/screens/home/skin/AdditionalSymptoms3.js
src/screens/home/skin/AdditionalSymptoms3.js
+1
-1
src/screens/home/skin/AdditionalSymptoms4.js
src/screens/home/skin/AdditionalSymptoms4.js
+1
-1
src/screens/home/skin/AdditionalSymptoms5.js
src/screens/home/skin/AdditionalSymptoms5.js
+1
-1
src/screens/home/skin/SkinRisk.js
src/screens/home/skin/SkinRisk.js
+4
-4
src/screens/home/skin/SkinUploader.js
src/screens/home/skin/SkinUploader.js
+1
-1
src/screens/home/skin/information1.js
src/screens/home/skin/information1.js
+1
-13
No files found.
src/assets/sk_14.jpg
0 → 100644
View file @
1cc146cc
55.7 KB
src/assets/sk_14.png
deleted
100644 → 0
View file @
b2034fff
172 KB
src/constants/imgs.js
View file @
1cc146cc
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
sk_5
:
require
(
'
../assets/sk_5.png
'
),
sk_5
:
require
(
'
../assets/sk_5.png
'
),
sk_8
:
require
(
'
../assets/sk_8.png
'
),
sk_8
:
require
(
'
../assets/sk_8.png
'
),
sk_9
:
require
(
'
../assets/sk_9.png
'
),
sk_9
:
require
(
'
../assets/sk_9.png
'
),
sk_14
:
require
(
'
../assets/sk_14.
pn
g
'
),
sk_14
:
require
(
'
../assets/sk_14.
jp
g
'
),
sk_15
:
require
(
'
../assets/sk_15.png
'
),
sk_15
:
require
(
'
../assets/sk_15.png
'
),
sk_16
:
require
(
'
../assets/sk_16.png
'
),
sk_16
:
require
(
'
../assets/sk_16.png
'
),
};
};
src/screens/home/skin/AdditionalSymptoms.js
View file @
1cc146cc
...
@@ -79,7 +79,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
...
@@ -79,7 +79,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if
(
toSkinRisk
)
{
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
}
else
{
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_
UPLOAD
);
navigation
.
navigate
(
ROUTES
.
SKIN_
INFO
);
}
}
};
};
...
...
src/screens/home/skin/AdditionalSymptoms1.js
View file @
1cc146cc
...
@@ -73,7 +73,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
...
@@ -73,7 +73,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if
(
toSkinRisk
)
{
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
}
else
{
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_
UPLOAD
);
navigation
.
navigate
(
ROUTES
.
SKIN_
INFO
);
}
}
};
};
...
...
src/screens/home/skin/AdditionalSymptoms2.js
View file @
1cc146cc
...
@@ -69,7 +69,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
...
@@ -69,7 +69,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if
(
toSkinRisk
)
{
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
}
else
{
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_
UPLOAD
);
navigation
.
navigate
(
ROUTES
.
SKIN_
INFO
);
}
}
};
};
...
...
src/screens/home/skin/AdditionalSymptoms3.js
View file @
1cc146cc
...
@@ -64,7 +64,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
...
@@ -64,7 +64,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if
(
toSkinRisk
)
{
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
}
else
{
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_
UPLOAD
);
navigation
.
navigate
(
ROUTES
.
SKIN_
INFO
);
}
}
};
};
...
...
src/screens/home/skin/AdditionalSymptoms4.js
View file @
1cc146cc
...
@@ -155,7 +155,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
...
@@ -155,7 +155,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
<
Button
<
Button
title
=
"
Continue for more information
"
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
style
=
{
styles
.
nextButton
}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_
VIDEO2
)}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_
INFO
)}
/
>
/
>
<
/ScrollView
>
<
/ScrollView
>
<
/SafeAreaView
>
<
/SafeAreaView
>
...
...
src/screens/home/skin/AdditionalSymptoms5.js
View file @
1cc146cc
...
@@ -62,7 +62,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
...
@@ -62,7 +62,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
if
(
toSkinRisk
)
{
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
}
else
{
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_
UPLOAD
);
navigation
.
navigate
(
ROUTES
.
SKIN_
INFO
);
}
}
};
};
...
...
src/screens/home/skin/SkinRisk.js
View file @
1cc146cc
...
@@ -25,7 +25,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
...
@@ -25,7 +25,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
subTopicText
}
>
Why
High
Risk
?
<
/Text
>
<
Text
style
=
{
styles
.
subTopicText
}
>
Why
High
Risk
?
<
/Text
>
<
View
style
=
{
styles
.
audioPlayerContainer
}
>
<
View
style
=
{
styles
.
audioPlayerContainer
}
>
<
Video
{
/*
<Video
source={require("./skinassets/pause.png")}
source={require("./skinassets/pause.png")}
style={styles.audioPlayer}
style={styles.audioPlayer}
controls={true}
controls={true}
...
@@ -35,7 +35,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
...
@@ -35,7 +35,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
repeat={true}
repeat={true}
onLoad={() => setAudioPaused(false)}
onLoad={() => setAudioPaused(false)}
/
>
/>
*/
}
<
/View
>
<
/View
>
<
Image
style
=
{
styles
.
babyImage
}
source
=
{
IMGS
.
sk_14
}
/
>
<
Image
style
=
{
styles
.
babyImage
}
source
=
{
IMGS
.
sk_14
}
/
>
...
@@ -48,7 +48,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
...
@@ -48,7 +48,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
<
Button
<
Button
title
=
"
Continue for more information
"
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
style
=
{
styles
.
nextButton
}
onPress
=
{
handleContinue
}
onPress
=
{
()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
)
}
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/screens/home/skin/SkinUploader.js
View file @
1cc146cc
...
@@ -143,7 +143,7 @@ const Camera = ({ navigation }) => {
...
@@ -143,7 +143,7 @@ const Camera = ({ navigation }) => {
<
Button
<
Button
title
=
"
Continue for more information
"
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
style
=
{
styles
.
nextButton
}
onPress
=
{
()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
)
}
onPress
=
{
handleContinue
}
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/screens/home/skin/information1.js
View file @
1cc146cc
...
@@ -40,18 +40,6 @@ const Additionalinformation = ({ navigation }) => {
...
@@ -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
=
()
=>
{
const
toggleFullscreen
=
()
=>
{
if
(
videoRef
.
current
)
{
if
(
videoRef
.
current
)
{
...
@@ -197,7 +185,7 @@ const Additionalinformation = ({ navigation }) => {
...
@@ -197,7 +185,7 @@ const Additionalinformation = ({ navigation }) => {
<
Button
<
Button
title
=
"
Continue for more information
"
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
style
=
{
styles
.
nextButton
}
onPress
=
{
handleSubmit
}
onPress
=
{
()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_WELCOME
)}
/
>
/
>
<
/ScrollView
>
<
/ScrollView
>
<
/SafeAreaView
>
<
/SafeAreaView
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment