Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TMP-23-068
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
TMP-23-068
TMP-23-068
Commits
1d7b16ce
Commit
1d7b16ce
authored
Oct 31, 2023
by
Yasara19
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Common UI Modification
parent
0afe3698
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
9 deletions
+49
-9
screens/Sidebar.js
screens/Sidebar.js
+5
-2
screens/Signin.js
screens/Signin.js
+44
-7
No files found.
screens/Sidebar.js
View file @
1d7b16ce
...
...
@@ -16,9 +16,12 @@ const Sidebar = () => {
}
if
(
tabIndex
===
2
){
navigation
.
navigate
(
"
WelcomeScreen
"
);
}
if
(
tabIndex
===
3
){
navigation
.
navigate
(
"
bmi
"
);
navigation
.
navigate
(
"
NutritionWelcome
"
);
}
if
(
tabIndex
===
4
){
navigation
.
navigate
(
"
UsImage
"
);
navigation
.
navigate
(
"
USWelcome
"
);
}
if
(
tabIndex
===
5
){
navigation
.
navigate
(
"
MoodWelcome
"
);
}
...
...
screens/Signin.js
View file @
1d7b16ce
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
View
,
Text
,
TextInput
,
Button
,
StyleSheet
}
from
'
react-native
'
;
import
{
View
,
Text
,
TextInput
,
Button
,
StyleSheet
,
ImageBackground
,
ScrollView
}
from
'
react-native
'
;
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
import
{
firebase
}
from
'
../config
'
;
import
{
registerIndieID
,
unregisterIndieDevice
}
from
'
native-notify
'
;
...
...
@@ -140,7 +140,12 @@ useEffect(() => {
},
[]);
return
(
<
ScrollView
contentContainerStyle
=
{
styles
.
scrollViewContent
}
>
<
View
style
=
{
styles
.
container
}
>
<
ImageBackground
source
=
{
require
(
"
../assets/signup.png
"
)}
resizeMode
=
"
cover
"
style
=
{
styles
.
image
}
>
<
View
style
=
{
styles
.
overlay
}
>
<
View
style
=
{
styles
.
subcontainer
}
>
<
Text
style
=
{
styles
.
label
}
>
Email
<
/Text
>
<
TextInput
style
=
{
styles
.
input
}
...
...
@@ -157,11 +162,17 @@ useEffect(() => {
onChangeText
=
{(
text
)
=>
setPassword
(
text
)}
secureTextEntry
/>
<
View
style
=
{
styles
.
subcontainerbut
}
>
<
Button
title
=
"
Sign In
"
onPress
=
{
handleSignIn
}
/
>
<
Text
style
=
{
styles
.
signUpText
}
>
Don
'
t have an account? Sign Up</Text>
<Button title="Sign Up" onPress={goToSignUp} />
</View>
</View>
</View>
</ImageBackground>
</View>
</ScrollView>
);
};
...
...
@@ -169,21 +180,47 @@ useEffect(() => {
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent:
'
center
'
,
alignItems:
'
center
'
,
margin: 20,
},
subcontainer:{
marginTop: -250,
},
scrollViewContent: {
minHeight:
'
120
%
'
, // Set a minimum height to enable scrolling
},
subcontainerbut:{
marginTop: 20,
},
image: {
flex: 1,
justifyContent:
'
center
'
,
},
overlay: {
flex: 1,
backgroundColor:
'
rgba
(
0
,
0
,
0
,
0.3
)
'
,
padding: 80,
justifyContent:
'
center
'
,
},
label: {
fontSize: 16,
marginBottom: 5,
},
input: {
width:
'
100
%
'
,
height: 40,
borderWidth: 1,
borderColor:
'
gray
'
,
margin
Bottom
: 10,
padding: 10,
margin
Top
: 10,
},
signUpText: {
marginTop: 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