Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 16
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
22_23-J 16
22_23-J 16
Commits
e23206e7
Commit
e23206e7
authored
May 06, 2023
by
Ishini Kiridena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sexual preference UIs completed
parent
9e8352b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
1 deletion
+78
-1
emma-frontend/App.js
emma-frontend/App.js
+6
-0
emma-frontend/components/patientscreens/registration/regFive.js
...rontend/components/patientscreens/registration/regFive.js
+1
-0
emma-frontend/components/patientscreens/registration/regFour.js
...rontend/components/patientscreens/registration/regFour.js
+1
-1
emma-frontend/components/patientscreens/registration/regSix.js
...frontend/components/patientscreens/registration/regSix.js
+70
-0
No files found.
emma-frontend/App.js
View file @
e23206e7
...
...
@@ -11,6 +11,7 @@ import PatientRegThree from "./components/patientscreens/registration/regThree";
import
PatientRegisterFour
from
"
./components/patientscreens/registration/regFour
"
;
import
PatientRegFourOptional
from
"
./components/patientscreens/registration/regFourOptional
"
;
import
PatientRegFive
from
"
./components/patientscreens/registration/regFive
"
;
import
PatientRegSix
from
"
./components/patientscreens/registration/regSix
"
;
const
Stack
=
createStackNavigator
();
...
...
@@ -72,6 +73,11 @@ export default function App() {
component
=
{
PatientRegFive
}
options
=
{{
headerShown
:
false
}}
/
>
<
Stack
.
Screen
name
=
"
PatientRegSix
"
component
=
{
PatientRegSix
}
options
=
{{
headerShown
:
false
}}
/
>
<
/Stack.Navigator
>
)
:
(
<
SplashScreenComponent
/>
...
...
emma-frontend/components/patientscreens/registration/regFive.js
View file @
e23206e7
...
...
@@ -41,6 +41,7 @@ export default function PatientRegFive({ navigation, route }) {
relationshipStatus
:
radioOptions
[
relationshipStatus
].
label
,
numberOfChildren
,
};
navigation
.
navigate
(
"
PatientRegSix
"
,
data
);
console
.
log
(
data
);
};
...
...
emma-frontend/components/patientscreens/registration/regFour.js
View file @
e23206e7
...
...
@@ -35,7 +35,7 @@ export default function PatientRegFour({ navigation, route }) {
navigation
.
navigate
(
"
PatientRegFourOptional
"
,
data
);
console
.
log
(
data
);
}
else
{
navigation
.
navigat
ion
(
"
PatientRegFive
"
,
data
);
navigation
.
navigat
e
(
"
PatientRegFive
"
,
data
);
data
.
orphan
=
"
Yes
"
;
console
.
log
(
data
);
}
...
...
emma-frontend/components/patientscreens/registration/regSix.js
0 → 100644
View file @
e23206e7
import
React
,
{
useState
}
from
"
react
"
;
import
{
View
,
Text
,
Button
}
from
"
react-native
"
;
import
RadioForm
,
{
RadioButton
,
RadioButtonInput
,
RadioButtonLabel
,
}
from
"
react-native-simple-radio-button
"
;
export
default
function
PatientRegSix
({
navigation
,
route
})
{
const
[
selectedOption
,
setSelectedOption
]
=
useState
(
""
);
const
radioOptions
=
[
{
label
:
"
Heterosexual
"
,
value
:
"
Heterosexual
"
},
{
label
:
"
Gay
"
,
value
:
"
Gay
"
},
{
label
:
"
Lesbian
"
,
value
:
"
Lesbian
"
},
{
label
:
"
Bisexual
"
,
value
:
"
Bisexual
"
},
{
label
:
"
Other
"
,
value
:
"
Other
"
},
];
const
handleOptionSelect
=
(
value
)
=>
{
setSelectedOption
(
value
);
};
const
handleNext
=
()
=>
{
var
data
=
{
email
:
route
.
params
.
email
,
username
:
route
.
params
.
username
,
password
:
route
.
params
.
password
,
name
:
route
.
params
.
name
,
pronoun
:
route
.
params
.
pronoun
,
stringDate
:
route
.
params
.
stringDate
,
gender
:
route
.
params
.
gender
,
orphan
:
route
.
params
.
orphan
,
siblingCount
:
route
.
params
.
siblingCount
,
relationshipStatus
:
route
.
params
.
relationshipStatus
,
numberOfChildren
:
route
.
params
.
numberOfChildren
,
sexualPreference
:
selectedOption
,
};
//navigation.navigate("PatientRegSeven", data);
console
.
log
(
data
);
};
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
label
}
>
Sexual
Preference
:
<
/Text
>
<
RadioForm
radio_props
=
{
radioOptions
}
initial
=
{
selectedOption
}
onPress
=
{
handleOptionSelect
}
formHorizontal
=
{
false
}
labelHorizontal
=
{
true
}
buttonColor
=
{
"
#2196f3
"
}
/
>
<
Button
title
=
"
Next
"
onPress
=
{
handleNext
}
/
>
<
/View
>
);
}
const
styles
=
{
container
:
{
flex
:
1
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
padding
:
20
,
},
label
:
{
fontSize
:
18
,
marginBottom
:
10
,
},
};
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