Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-090 frontend
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
2021-090
2021-090 frontend
Commits
a832ff6e
Commit
a832ff6e
authored
Aug 18, 2021
by
IT18111170-Silva S.H.I
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: code formatted
parent
ad7284ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
194 additions
and
189 deletions
+194
-189
screen/HomeScreen.js
screen/HomeScreen.js
+1
-1
screen/PriceScreen.js
screen/PriceScreen.js
+193
-188
No files found.
screen/HomeScreen.js
View file @
a832ff6e
...
...
@@ -21,7 +21,7 @@ export function HomeScreen({ navigation }) {
<
ImageBackground
source
=
{
require
(
'
../assets/signin1.jpg
'
)}
style
=
{
styles
.
images
}
>
<
ImageSliderz
height
=
{
35
0
}
height
=
{
43
0
}
dataSource
=
{[
{
url
:
require
(
"
../assets/d.jpg
"
),
...
...
screen/PriceScreen.js
View file @
a832ff6e
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
StyleSheet
,
Button
,
TextInput
,
View
,
Text
,
TouchableOpacity
,
ImageBackground
}
from
'
react-native
'
;
import
{
FontAwesome
}
from
'
@expo/vector-icons
'
;
import
{
FontAwesome5
}
from
'
@expo/vector-icons
'
;
import
{
Entypo
}
from
'
@expo/vector-icons
'
;
import
{
Ionicons
}
from
'
@expo/vector-icons
'
;
import
React
,
{
useState
,
useEffect
}
from
"
react
"
;
import
{
StyleSheet
,
Button
,
TextInput
,
View
,
Text
,
TouchableOpacity
,
ImageBackground
,
}
from
"
react-native
"
;
import
{
FontAwesome
}
from
"
@expo/vector-icons
"
;
import
{
FontAwesome5
}
from
"
@expo/vector-icons
"
;
import
{
Entypo
}
from
"
@expo/vector-icons
"
;
import
{
Ionicons
}
from
"
@expo/vector-icons
"
;
export
function
PriceScreen
({
navigation
,
data
})
{
return
(
<
View
style
=
{
styles
.
container
}
>
{
/* <ImageBackground source={require('../assets/agri.jpg')} style={styles.images}>
...
...
@@ -56,11 +60,12 @@ export function PriceScreen({ navigation, data }) {
</View>
</ImageBackground> */
}
<
ImageBackground
source
=
{
require
(
'
../assets/signin1.jpg
'
)}
style
=
{
styles
.
images
}
>
<
ImageBackground
source
=
{
require
(
"
../assets/signin1.jpg
"
)}
style
=
{
styles
.
images
}
>
<
View
style
=
{
styles
.
editUSer
}
>
<
TouchableOpacity
>
<
FontAwesome5
name
=
"
user-edit
"
size
=
{
30
}
color
=
"
black
"
/>
<
/TouchableOpacity
>
<
/View
>
...
...
@@ -73,9 +78,14 @@ export function PriceScreen({ navigation, data }) {
Sign In to your Account
</Text> */
}
<
Text
style
=
{{
alignSelf
:
'
center
'
,
marginBottom
:
10
,
fontSize
:
10
}}
>
User
Profile
<
/Text
>
<
Text
style
=
{{
alignSelf
:
"
center
"
,
marginBottom
:
10
,
fontSize
:
20
}}
>
{
"
"
}
User
Profile
{
"
"
}
<
/Text
>
<
View
style
=
{{
alignSelf
:
'
center
'
,
marginBottom
:
30
}}
>
<
View
style
=
{{
alignSelf
:
"
center
"
,
marginBottom
:
30
}}
>
<
Ionicons
name
=
"
person
"
size
=
{
50
}
color
=
"
black
"
/>
<
/View
>
...
...
@@ -96,18 +106,17 @@ export function PriceScreen({ navigation, data }) {
blurOnSubmit
=
{
false
}
/
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
SectionStyle
}
>
<
View
style
=
{
styles
.
textinputicon
}
>
<
Entypo
name
=
"
lock
"
size
=
{
30
}
color
=
"
white
"
/>
<
FontAwesome
name
=
"
money
"
size
=
{
30
}
color
=
"
white
"
/>
<
TextInput
style
=
{
styles
.
input1
}
// onChangeText={(UserPassword) =>
// setUserPassword(UserPassword)
// }
placeholder
=
"
Enter Password
"
//12345
placeholder
=
"
Enter Earns
"
//12345
placeholderTextColor
=
"
#8b9cb5
"
// ref={passwordInputRef}
// onSubmitEditing={Keyboard.dismiss}
...
...
@@ -137,7 +146,7 @@ export function PriceScreen({ navigation, data }) {
<
TouchableOpacity
style
=
{
styles
.
buttonSub
}
activeOpacity
=
{
0.5
}
onPress
=
{()
=>
navigation
.
navigate
(
'
HomeScreen
'
)}
onPress
=
{()
=>
navigation
.
navigate
(
"
HomeScreen
"
)}
>
<
Text
style
=
{
styles
.
buttonTextStyle
}
>
Save
Details
<
/Text
>
{
/* <ImageBackground source={require('../assets/loginex.jpg')} style={styles.imagebutton}/> */
}
...
...
@@ -152,21 +161,19 @@ export function PriceScreen({ navigation, data }) {
</TouchableOpacity>
</View> */
}
<
View
>
<
Text
style
=
{
styles
.
text1
}
>
You
have
earned
5
%
Discount
<
/Text
>
<
Text
style
=
{
styles
.
text1
}
>
You
have
earned
5
%
Discount
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/View
>
)
);
}
const
styles
=
StyleSheet
.
create
({
input
:
{
borderWidth
:
1
,
borderColor
:
'
#ddd
'
,
borderColor
:
"
#ddd
"
,
padding
:
10
,
paddingTop
:
10
,
fontSize
:
15
,
...
...
@@ -175,7 +182,7 @@ const styles = StyleSheet.create({
marginBottom
:
10
,
marginLeft
:
19
,
marginRight
:
19
,
backgroundColor
:
'
white
'
,
backgroundColor
:
"
white
"
,
},
buttonSub
:
{
width
:
"
80%
"
,
...
...
@@ -190,43 +197,41 @@ const styles = StyleSheet.create({
borderRadius
:
8
,
},
images
:
{
height
:
'
100%
'
,
justifyContent
:
'
center
'
height
:
"
100%
"
,
justifyContent
:
"
center
"
,
},
text
:
{
fontSize
:
30
,
alignSelf
:
"
center
"
,
marginTop
:
5
,
color
:
'
black
'
color
:
"
black
"
,
},
text1
:
{
fontSize
:
20
,
alignSelf
:
"
center
"
,
marginBottom
:
20
,
marginTop
:
15
,
color
:
'
black
'
color
:
"
black
"
,
},
container
:
{
justifyContent
:
'
flex-start
'
,
alignContent
:
'
stretch
'
justifyContent
:
"
flex-start
"
,
alignContent
:
"
stretch
"
,
},
secondContainer
:
{
justifyContent
:
'
flex-start
'
,
justifyContent
:
"
flex-start
"
,
},
textinputicon
:
{
// flex: 1,
flexDirection
:
'
row
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
flexDirection
:
"
row
"
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
// backgroundColor: '#fff',
color
:
'
yellow
'
color
:
"
yellow
"
,
},
input1
:
{
borderWidth
:
1
,
borderColor
:
'
#ddd
'
,
borderColor
:
"
#ddd
"
,
padding
:
10
,
// paddingTop: 10,
fontSize
:
15
,
...
...
@@ -235,8 +240,8 @@ const styles = StyleSheet.create({
marginBottom
:
10
,
marginLeft
:
10
,
marginRight
:
19
,
backgroundColor
:
'
white
'
,
width
:
'
75%
'
backgroundColor
:
"
white
"
,
width
:
"
75%
"
,
},
buttonSignUp
:
{
width
:
"
20%
"
,
...
...
@@ -247,9 +252,9 @@ const styles = StyleSheet.create({
flexDirection
:
"
row
"
,
// marginBottom: 10,
justifyContent
:
"
center
"
,
borderRadius
:
8
borderRadius
:
8
,
},
editUSer
:
{
alignSelf
:
"
flex-end
"
,
},
editUSer
:{
alignSelf
:
"
flex-end
"
}
});
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