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
c0e7a4cc
Commit
c0e7a4cc
authored
May 05, 2023
by
Ishini Kiridena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patient email, pw, un registration UI
parent
413e75ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
9 deletions
+80
-9
emma-frontend/App.js
emma-frontend/App.js
+6
-0
emma-frontend/components/practitionerscreens/registration/regOne.js
...end/components/practitionerscreens/registration/regOne.js
+61
-0
emma-frontend/components/shared/sharedLogin.js
emma-frontend/components/shared/sharedLogin.js
+7
-5
emma-frontend/components/shared/sharedRegistration.js
emma-frontend/components/shared/sharedRegistration.js
+6
-4
No files found.
emma-frontend/App.js
View file @
c0e7a4cc
...
...
@@ -5,6 +5,7 @@ import MainScreen from "./components/shared/mainview";
import
SplashScreenComponent
from
"
./components/shared/splashscreen
"
;
import
SharedLogin
from
"
./components/shared/sharedLogin
"
;
import
SharedRegisterScreen
from
"
./components/shared/sharedRegistration
"
;
import
PatientRegOne
from
"
./components/practitionerscreens/registration/regOne
"
;
const
Stack
=
createStackNavigator
();
...
...
@@ -36,6 +37,11 @@ export default function App() {
component
=
{
SharedRegisterScreen
}
options
=
{{
headerShown
:
false
}}
/
>
<
Stack
.
Screen
name
=
"
PatientRegOne
"
component
=
{
PatientRegOne
}
options
=
{{
headerShown
:
false
}}
/
>
<
/Stack.Navigator
>
)
:
(
<
SplashScreenComponent
/>
...
...
emma-frontend/components/practitionerscreens/registration/regOne.js
0 → 100644
View file @
c0e7a4cc
import
React
,
{
useState
}
from
"
react
"
;
import
{
View
,
TextInput
,
Button
,
StyleSheet
}
from
"
react-native
"
;
import
{
useNavigation
}
from
"
@react-navigation/native
"
;
export
default
function
PatientRegOne
()
{
const
navigation
=
useNavigation
();
const
[
email
,
setEmail
]
=
useState
(
""
);
const
[
username
,
setUsername
]
=
useState
(
""
);
const
[
password
,
setPassword
]
=
useState
(
""
);
const
handleNext
=
()
=>
{
// navigation.navigate("PatientRegTwo", {
// email,
// username,
// password,
// });
console
.
log
(
email
,
username
,
password
);
};
return
(
<
View
style
=
{
styles
.
container
}
>
<
TextInput
style
=
{
styles
.
input
}
placeholder
=
"
Email
"
value
=
{
email
}
onChangeText
=
{(
text
)
=>
setEmail
(
text
)}
/
>
<
TextInput
style
=
{
styles
.
input
}
placeholder
=
"
Username
"
value
=
{
username
}
onChangeText
=
{(
text
)
=>
setUsername
(
text
)}
/
>
<
TextInput
style
=
{
styles
.
input
}
placeholder
=
"
Password
"
value
=
{
password
}
onChangeText
=
{(
text
)
=>
setPassword
(
text
)}
secureTextEntry
=
{
true
}
/
>
<
Button
title
=
"
Next
"
onPress
=
{
handleNext
}
/
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
,
},
input
:
{
width
:
"
80%
"
,
height
:
40
,
marginVertical
:
10
,
paddingHorizontal
:
10
,
borderColor
:
"
gray
"
,
borderWidth
:
1
,
borderRadius
:
5
,
},
});
emma-frontend/components/shared/sharedLogin.js
View file @
c0e7a4cc
import
React
from
"
react
"
;
import
{
StyleSheet
,
View
,
Text
,
Button
}
from
"
react-native
"
;
const
SharedLogin
=
()
=>
{
export
default
function
SharedLogin
({
navigation
})
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
Button
title
=
"
Patient
"
onPress
=
{()
=>
console
.
log
(
"
Patient login
"
)}
/
>
<
Button
title
=
"
I am here to get help
"
onPress
=
{()
=>
console
.
log
(
"
Patient login
"
)}
/
>
<
View
style
=
{
styles
.
separator
}
/
>
<
Button
title
=
"
Practitioner
"
title
=
"
I am here to help
"
onPress
=
{()
=>
console
.
log
(
"
Practitioner login
"
)}
/
>
<
/View
>
<
/View
>
);
}
;
}
const
styles
=
StyleSheet
.
create
({
container
:
{
...
...
@@ -30,4 +33,3 @@ const styles = StyleSheet.create({
width
:
10
,
},
});
export
default
SharedLogin
;
emma-frontend/components/shared/sharedRegistration.js
View file @
c0e7a4cc
import
React
from
"
react
"
;
import
{
StyleSheet
,
View
,
Text
,
Button
}
from
"
react-native
"
;
const
SharedRegisterScreen
=
()
=>
{
export
default
function
SharedRegisterScreen
({
navigation
})
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
Button
title
=
"
Patient Register
"
onPress
=
{()
=>
console
.
log
(
"
Patient registration
"
)}
onPress
=
{()
=>
{
console
.
log
(
"
Patient registration
"
);
navigation
.
navigate
(
"
PatientRegOne
"
);
}}
/
>
<
View
style
=
{
styles
.
separator
}
/
>
<
Button
...
...
@@ -17,7 +20,7 @@ const SharedRegisterScreen = () => {
<
/View
>
<
/View
>
);
}
;
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
...
...
@@ -32,4 +35,3 @@ const styles = StyleSheet.create({
width
:
10
,
},
});
export
default
SharedRegisterScreen
;
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