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
fdcc8a1c
Commit
fdcc8a1c
authored
May 06, 2023
by
Ishini Kiridena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
completed family status uis
parent
06b50cf3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
149 additions
and
30 deletions
+149
-30
emma-frontend/App.js
emma-frontend/App.js
+15
-21
emma-frontend/components/patientscreens/registration/regFour.js
...rontend/components/patientscreens/registration/regFour.js
+68
-0
emma-frontend/components/patientscreens/registration/regFourOptional.js
...components/patientscreens/registration/regFourOptional.js
+51
-0
emma-frontend/components/patientscreens/registration/regOne.js
...frontend/components/patientscreens/registration/regOne.js
+0
-0
emma-frontend/components/patientscreens/registration/regThree.js
...ontend/components/patientscreens/registration/regThree.js
+15
-9
emma-frontend/components/patientscreens/registration/regTwo.js
...frontend/components/patientscreens/registration/regTwo.js
+0
-0
No files found.
emma-frontend/App.js
View file @
fdcc8a1c
...
@@ -5,9 +5,11 @@ import MainScreen from "./components/shared/mainview";
...
@@ -5,9 +5,11 @@ import MainScreen from "./components/shared/mainview";
import
SplashScreenComponent
from
"
./components/shared/splashscreen
"
;
import
SplashScreenComponent
from
"
./components/shared/splashscreen
"
;
import
SharedLogin
from
"
./components/shared/sharedLogin
"
;
import
SharedLogin
from
"
./components/shared/sharedLogin
"
;
import
SharedRegisterScreen
from
"
./components/shared/sharedRegistration
"
;
import
SharedRegisterScreen
from
"
./components/shared/sharedRegistration
"
;
import
PatientRegOne
from
"
./components/practitionerscreens/registration/regOne
"
;
import
PatientRegOne
from
"
./components/patientscreens/registration/regOne
"
;
import
PatientRegTwo
from
"
./components/practitionerscreens/registration/regTwo
"
;
import
PatientRegTwo
from
"
./components/patientscreens/registration/regTwo
"
;
import
PatientRegThree
from
"
./components/practitionerscreens/registration/regThree
"
;
import
PatientRegThree
from
"
./components/patientscreens/registration/regThree
"
;
import
PatientRegisterFour
from
"
./components/patientscreens/registration/regFour
"
;
import
PatientRegFourOptional
from
"
./components/patientscreens/registration/regFourOptional
"
;
const
Stack
=
createStackNavigator
();
const
Stack
=
createStackNavigator
();
...
@@ -54,6 +56,16 @@ export default function App() {
...
@@ -54,6 +56,16 @@ export default function App() {
component
=
{
PatientRegThree
}
component
=
{
PatientRegThree
}
options
=
{{
headerShown
:
false
}}
options
=
{{
headerShown
:
false
}}
/
>
/
>
<
Stack
.
Screen
name
=
"
PatientRegFour
"
component
=
{
PatientRegisterFour
}
options
=
{{
headerShown
:
false
}}
/
>
<
Stack
.
Screen
name
=
"
PatientRegFourOptional
"
component
=
{
PatientRegFourOptional
}
options
=
{{
headerShown
:
false
}}
/
>
<
/Stack.Navigator
>
<
/Stack.Navigator
>
)
:
(
)
:
(
<
SplashScreenComponent
/>
<
SplashScreenComponent
/>
...
@@ -61,21 +73,3 @@ export default function App() {
...
@@ -61,21 +73,3 @@ export default function App() {
<
/NavigationContainer
>
<
/NavigationContainer
>
);
);
}
}
// export default function App() {
// return (
// <View style={styles.container}>
// <Text>Open up App.js to start working on your app!</Text>
// <StatusBar style="auto" />
// </View>
// );
// }
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: "#fff",
// alignItems: "center",
// justifyContent: "center",
// },
// });
emma-frontend/components/patientscreens/registration/regFour.js
0 → 100644
View file @
fdcc8a1c
import
React
,
{
useState
}
from
"
react
"
;
import
{
View
,
Text
,
StyleSheet
,
Button
}
from
"
react-native
"
;
import
RadioForm
,
{
RadioButton
,
RadioButtonInput
,
RadioButtonLabel
,
}
from
"
react-native-simple-radio-button
"
;
export
default
function
PatientRegFour
({
navigation
,
route
})
{
const
[
parentStatus
,
setParentStatus
]
=
useState
(
0
);
const
radioOptions
=
[
{
label
:
"
Yes
"
,
value
:
0
},
{
label
:
"
No
"
,
value
:
1
},
{
label
:
"
Complicated
"
,
value
:
2
},
];
const
handleParentStatusChange
=
(
value
)
=>
{
setParentStatus
(
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
:
"
No
"
,
siblingCount
:
0
,
};
if
(
parentStatus
===
0
)
{
navigation
.
navigate
(
"
PatientRegFourOptional
"
,
data
);
console
.
log
(
data
);
}
else
{
//navigation.navigation("PatientRegFive", data)
data
.
orphan
=
"
Yes
"
;
console
.
log
(
data
);
}
};
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
>
Did
you
grow
up
with
parents
?
<
/Text
>
<
RadioForm
radio_props
=
{
radioOptions
}
initial
=
{
parentStatus
}
onPress
=
{
handleParentStatusChange
}
formHorizontal
=
{
false
}
labelHorizontal
=
{
true
}
buttonColor
=
{
"
#2196f3
"
}
selectedButtonColor
=
{
"
#2196f3
"
}
labelStyle
=
{{
fontSize
:
16
,
marginHorizontal
:
10
}}
style
=
{{
marginVertical
:
10
}}
/
>
<
Button
title
=
"
Next
"
onPress
=
{
handleNext
}
/
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
,
},
});
emma-frontend/components/patientscreens/registration/regFourOptional.js
0 → 100644
View file @
fdcc8a1c
import
React
,
{
useState
}
from
"
react
"
;
import
{
View
,
Text
,
StyleSheet
,
TextInput
,
Button
}
from
"
react-native
"
;
export
default
function
PatientRegFourOptional
({
navigation
,
route
})
{
const
[
siblingCount
,
setSiblingCount
]
=
useState
(
""
);
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
:
siblingCount
.
toString
(),
};
//navigation.navigate("PatientRegFive", data);
console
.
log
(
data
);
};
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
>
How
many
siblings
did
you
have
?
<
/Text
>
<
TextInput
style
=
{
styles
.
input
}
onChangeText
=
{(
text
)
=>
setSiblingCount
(
text
)}
value
=
{
siblingCount
.
toString
()}
keyboardType
=
"
numeric
"
/>
<
Button
title
=
"
Next
"
onPress
=
{
handleNext
}
/
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
,
},
inputContainer
:
{
marginTop
:
20
,
},
input
:
{
height
:
40
,
width
:
200
,
borderColor
:
"
gray
"
,
borderWidth
:
1
,
paddingHorizontal
:
10
,
},
});
emma-frontend/components/p
ractitioner
screens/registration/regOne.js
→
emma-frontend/components/p
atient
screens/registration/regOne.js
View file @
fdcc8a1c
File moved
emma-frontend/components/p
ractitioner
screens/registration/regThree.js
→
emma-frontend/components/p
atient
screens/registration/regThree.js
View file @
fdcc8a1c
...
@@ -18,6 +18,7 @@ export default function PatientRegThree({ navigation, route }) {
...
@@ -18,6 +18,7 @@ export default function PatientRegThree({ navigation, route }) {
const
[
birthday
,
setBirthday
]
=
useState
(
new
Date
());
const
[
birthday
,
setBirthday
]
=
useState
(
new
Date
());
const
[
gender
,
setGender
]
=
useState
(
""
);
const
[
gender
,
setGender
]
=
useState
(
""
);
const
[
showDatePicker
,
setShowDatePicker
]
=
useState
(
false
);
const
[
showDatePicker
,
setShowDatePicker
]
=
useState
(
false
);
var
stringDate
;
const
handleDateChange
=
(
event
,
selectedDate
)
=>
{
const
handleDateChange
=
(
event
,
selectedDate
)
=>
{
const
currentDate
=
selectedDate
||
date
;
const
currentDate
=
selectedDate
||
date
;
...
@@ -25,16 +26,21 @@ export default function PatientRegThree({ navigation, route }) {
...
@@ -25,16 +26,21 @@ export default function PatientRegThree({ navigation, route }) {
setBirthday
(
currentDate
);
setBirthday
(
currentDate
);
};
};
const
convertDateToString
=
()
=>
{
stringDate
=
birthday
.
toLocaleDateString
();
};
const
handleNext
=
()
=>
{
const
handleNext
=
()
=>
{
// navigation.navigate("PatientRegFour", {
convertDateToString
();
// email: route.params.email,
navigation
.
navigate
(
"
PatientRegFour
"
,
{
// username: route.params.username,
email
:
route
.
params
.
email
,
// password: route.params.password,
username
:
route
.
params
.
username
,
// name: route.params.name,
password
:
route
.
params
.
password
,
// pronoun: route.params.pronoun,
name
:
route
.
params
.
name
,
// birthday,
pronoun
:
route
.
params
.
pronoun
,
// gender,
stringDate
,
// });
gender
,
});
console
.
log
({
console
.
log
({
email
:
route
.
params
.
email
,
email
:
route
.
params
.
email
,
username
:
route
.
params
.
username
,
username
:
route
.
params
.
username
,
...
...
emma-frontend/components/p
ractitioner
screens/registration/regTwo.js
→
emma-frontend/components/p
atient
screens/registration/regTwo.js
View file @
fdcc8a1c
File moved
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