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
c53b5595
Commit
c53b5595
authored
May 21, 2024
by
Devin B
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add_info
parent
f7fabe12
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
2157 additions
and
40 deletions
+2157
-40
src/constants/routes.js
src/constants/routes.js
+6
-1
src/navigations/SkinNavigator.js
src/navigations/SkinNavigator.js
+10
-0
src/screens/home/skin/AdditionalSymptoms.js
src/screens/home/skin/AdditionalSymptoms.js
+3
-3
src/screens/home/skin/AdditionalSymptoms1.js
src/screens/home/skin/AdditionalSymptoms1.js
+4
-4
src/screens/home/skin/AdditionalSymptoms2.js
src/screens/home/skin/AdditionalSymptoms2.js
+3
-3
src/screens/home/skin/AdditionalSymptoms3.js
src/screens/home/skin/AdditionalSymptoms3.js
+3
-3
src/screens/home/skin/AdditionalSymptoms4.js
src/screens/home/skin/AdditionalSymptoms4.js
+3
-3
src/screens/home/skin/AdditionalSymptoms5.js
src/screens/home/skin/AdditionalSymptoms5.js
+3
-3
src/screens/home/skin/SkinRisk.js
src/screens/home/skin/SkinRisk.js
+25
-9
src/screens/home/skin/SkinUploader.js
src/screens/home/skin/SkinUploader.js
+1
-10
src/screens/home/skin/information1.js
src/screens/home/skin/information1.js
+1
-1
src/screens/home/skin/skininformation2.js
src/screens/home/skin/skininformation2.js
+419
-0
src/screens/home/skin/skininformation5.js
src/screens/home/skin/skininformation5.js
+419
-0
src/screens/home/skin/skininformation6.js
src/screens/home/skin/skininformation6.js
+419
-0
src/screens/home/skin/skininfromation3.js
src/screens/home/skin/skininfromation3.js
+419
-0
src/screens/home/skin/skininfromation4.js
src/screens/home/skin/skininfromation4.js
+419
-0
No files found.
src/constants/routes.js
View file @
c53b5595
...
...
@@ -35,5 +35,10 @@ export default {
SKIN_VIDEO3
:
'
Skin_Video3
'
,
SKIN_VIDEO4
:
'
Skin_Video4
'
,
SKIN_VIDEO5
:
'
Skin_Video5
'
,
SKIN_INFO
:
'
skin_info
'
SKIN_INFO
:
'
skin_info
'
,
SKIN_INFO2
:
'
skin_info2
'
,
SKIN_INFO3
:
'
skin_info3
'
,
SKIN_INFO4
:
'
skin_info4
'
,
SKIN_INFO5
:
'
skin_info5
'
,
SKIN_INFO6
:
'
skin_info6
'
};
src/navigations/SkinNavigator.js
View file @
c53b5595
...
...
@@ -10,6 +10,11 @@ import AdditionalSymptoms3 from '../screens/home/skin/AdditionalSymptoms3';
import
AdditionalSymptoms4
from
'
../screens/home/skin/AdditionalSymptoms4
'
;
import
AdditionalSymptoms5
from
'
../screens/home/skin/AdditionalSymptoms5
'
;
import
Additionalinformation
from
'
../screens/home/skin/information1
'
;
import
Additionalinformation2
from
'
../screens/home/skin/skininformation2
'
;
import
Additionalinformation3
from
'
../screens/home/skin/skininfromation3
'
;
import
Additionalinformation4
from
'
../screens/home/skin/skininfromation4
'
;
import
Additionalinformation5
from
'
../screens/home/skin/skininformation5
'
;
import
Additionalinformation6
from
'
../screens/home/skin/skininformation6
'
;
import
{
COLORS
,
ROUTES
}
from
"
../constants
"
const
Stack
=
createStackNavigator
();
...
...
@@ -30,6 +35,11 @@ function SkinNavigator() {
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_VIDEO4
}
component
=
{
AdditionalSymptoms4
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_VIDEO5
}
component
=
{
AdditionalSymptoms5
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_INFO
}
component
=
{
Additionalinformation
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_INFO2
}
component
=
{
Additionalinformation2
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_INFO3
}
component
=
{
Additionalinformation3
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_INFO4
}
component
=
{
Additionalinformation4
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_INFO5
}
component
=
{
Additionalinformation5
}
/
>
<
Stack
.
Screen
name
=
{
ROUTES
.
SKIN_INFO6
}
component
=
{
Additionalinformation6
}
/
>
...
...
src/screens/home/skin/AdditionalSymptoms.js
View file @
c53b5595
...
...
@@ -9,7 +9,7 @@ import { Dimensions } from 'react-native';
import
{
Linking
}
from
'
react-native
'
;
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
AdditionalSymptomsScreen
2
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
...
...
@@ -77,7 +77,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// Navigate based on condition
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
,
{
origin
:
'
AdditionalSymptomsScreen2
'
}
);
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
);
}
...
...
@@ -460,4 +460,4 @@ const styles = StyleSheet.create({
// ... possibly other styles
});
export
default
AdditionalSymptomsScreen
;
export
default
AdditionalSymptomsScreen
2
;
src/screens/home/skin/AdditionalSymptoms1.js
View file @
c53b5595
...
...
@@ -9,7 +9,7 @@ import { Dimensions } from 'react-native';
import
{
Linking
}
from
'
react-native
'
;
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
AdditionalSymptomsScreen
1
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
...
...
@@ -71,9 +71,9 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// Navigate based on condition
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
,
{
origin
:
'
AdditionalSymptomsScreen1
'
}
);
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
);
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
2
);
}
};
...
...
@@ -455,4 +455,4 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
});
export
default
AdditionalSymptomsScreen
;
export
default
AdditionalSymptomsScreen
1
;
src/screens/home/skin/AdditionalSymptoms2.js
View file @
c53b5595
...
...
@@ -9,7 +9,7 @@ import { Dimensions } from 'react-native';
import
{
Linking
}
from
'
react-native
'
;
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
AdditionalSymptomsScreen
3
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
...
...
@@ -67,7 +67,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// Navigate based on condition
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
,
{
origin
:
'
AdditionalSymptomsScreen3
'
}
);
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
);
}
...
...
@@ -451,4 +451,4 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
});
export
default
AdditionalSymptomsScreen
;
export
default
AdditionalSymptomsScreen
3
;
src/screens/home/skin/AdditionalSymptoms3.js
View file @
c53b5595
...
...
@@ -9,7 +9,7 @@ import { Dimensions } from 'react-native';
import
{
Linking
}
from
'
react-native
'
;
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
AdditionalSymptomsScreen
4
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
...
...
@@ -62,7 +62,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// Navigate based on condition
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
,
{
origin
:
'
AdditionalSymptomsScreen4
'
}
);
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
);
}
...
...
@@ -445,4 +445,4 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// ... possibly other styles
});
export
default
AdditionalSymptomsScreen
;
export
default
AdditionalSymptomsScreen
4
;
src/screens/home/skin/AdditionalSymptoms4.js
View file @
c53b5595
...
...
@@ -9,7 +9,7 @@ import { Dimensions } from 'react-native';
import
{
Linking
}
from
'
react-native
'
;
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
AdditionalSymptomsScreen
5
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
...
...
@@ -155,7 +155,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
<
Button
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
)}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
6
)}
/
>
<
/ScrollView
>
<
/SafeAreaView
>
...
...
@@ -381,4 +381,4 @@ const styles = StyleSheet.create({
// ... possibly other styles
});
export
default
AdditionalSymptomsScreen
;
export
default
AdditionalSymptomsScreen
5
;
src/screens/home/skin/AdditionalSymptoms5.js
View file @
c53b5595
...
...
@@ -9,7 +9,7 @@ import { Dimensions } from 'react-native';
import
{
Linking
}
from
'
react-native
'
;
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
AdditionalSymptomsScreen
6
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
...
...
@@ -60,7 +60,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// Navigate based on condition
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
,
{
origin
:
'
AdditionalSymptomsScreen6
'
}
);
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
);
}
...
...
@@ -443,4 +443,4 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
// ... possibly other styles
});
export
default
AdditionalSymptomsScreen
;
export
default
AdditionalSymptomsScreen
6
;
src/screens/home/skin/SkinRisk.js
View file @
c53b5595
...
...
@@ -7,18 +7,14 @@ import Button from '../../../components/Button';
import
Video
from
'
react-native-video
'
;
import
{
SafeAreaView
}
from
'
react-native-safe-area-context
'
;
const
RiskEvaluationScreen
=
({
navigation
})
=>
{
const
RiskEvaluationScreen
=
({
navigation
,
route
})
=>
{
const
{
origin
}
=
route
.
params
||
{};
const
[
audioPaused
,
setAudioPaused
]
=
useState
(
true
);
const
[
progress
,
setProgress
]
=
useState
(
0
);
const
audioRef
=
useRef
(
null
);
const
progressAnim
=
useRef
(
new
Animated
.
Value
(
0
)).
current
;
// Function to handle the continuation to the next screen
const
handleContinue
=
()
=>
{
// navigation.navigate('NextScreenRoute');
};
useEffect
(()
=>
{
if
(
audioPaused
)
{
progressAnim
.
stopAnimation
();
...
...
@@ -40,13 +36,33 @@ const RiskEvaluationScreen = ({ navigation }) => {
}
};
const
handleContinue
=
()
=>
{
if
(
origin
===
'
AdditionalSymptomsScreen2
'
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
);
}
else
if
(
origin
===
'
AdditionalSymptomsScreen1
'
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO2
);
}
else
if
(
origin
===
'
AdditionalSymptomsScreen3
'
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO3
);
}
else
if
(
origin
===
'
AdditionalSymptomsScreen4
'
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO4
);
}
else
if
(
origin
===
'
AdditionalSymptomsScreen6
'
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_INFO5
);
}
// else {
// navigation.navigate(ROUTES.SKIN_INFO); // Default or fallback screen
// }
};
const
URL_link
=
"
https://res.cloudinary.com/dl207ux6g/video/upload/v1716112518/audio/fzkd6v8lnmnsa4onm8sx.mp3
"
;
return
(
<
SafeAreaView
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
topContainer
}
>
<
Text
style
=
{
styles
.
topicText
}
>
Risk
evaluation
<
/Text
>
<
Text
style
=
{
styles
.
topicText
}
>
Evaluated
risk
<
/Text
>
<
Text
style
=
{
styles
.
descriptionText
}
>
Your
Condition
Risk
Level
:
High
,
Low
will
be
displayed
below
<
/Text
>
...
...
@@ -90,7 +106,7 @@ const RiskEvaluationScreen = ({ navigation }) => {
<
Button
title
=
"
What should I do next
"
style
=
{
styles
.
nextButton
}
onPress
=
{
()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_INFO
)
}
onPress
=
{
handleContinue
}
/
>
<
/View
>
<
/SafeAreaView
>
...
...
src/screens/home/skin/SkinUploader.js
View file @
c53b5595
...
...
@@ -145,16 +145,7 @@ const Camera = ({ navigation }) => {
style
=
{
styles
.
nextButton
}
onPress
=
{
handleContinue
}
/
>
{
/* <Button
title="Take your next step"
style={{
marginTop: 12,
width: "90%",
marginTop:43,
marginBottom:83
}}
onPress={() => navigation.navigate(ROUTES.SKIN_RISK)}
/> */
}
<
/View
>
<
/View
>
);
...
...
src/screens/home/skin/information1.js
View file @
c53b5595
...
...
@@ -183,7 +183,7 @@ const Additionalinformation = ({ navigation }) => {
<
/View
>
<
Button
title
=
"
Continue for more informatio
n
"
title
=
"
Not sure ? Diagnose agai
n
"
style
=
{
styles
.
nextButton
}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_WELCOME
)}
/
>
...
...
src/screens/home/skin/skininformation2.js
0 → 100644
View file @
c53b5595
This diff is collapsed.
Click to expand it.
src/screens/home/skin/skininformation5.js
0 → 100644
View file @
c53b5595
This diff is collapsed.
Click to expand it.
src/screens/home/skin/skininformation6.js
0 → 100644
View file @
c53b5595
This diff is collapsed.
Click to expand it.
src/screens/home/skin/skininfromation3.js
0 → 100644
View file @
c53b5595
This diff is collapsed.
Click to expand it.
src/screens/home/skin/skininfromation4.js
0 → 100644
View file @
c53b5595
This diff is collapsed.
Click to expand it.
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