Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
exam_9_native
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zarina
exam_9_native
Commits
6ff2ba1c
Commit
6ff2ba1c
authored
May 23, 2020
by
zarina
🌊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
изменен интерфейс (добавлен верхний отступ, расширена область клика у кнопки)
parent
72013c72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
FullContact.js
components/FullContact/FullContact.js
+4
-4
Main.js
containers/Main/Main.js
+5
-7
No files found.
components/FullContact/FullContact.js
View file @
6ff2ba1c
...
...
@@ -3,7 +3,7 @@ import {StyleSheet, Image, Text, TouchableHighlight, View} from "react-native";
const
FullContact
=
props
=>
{
return
(
<
View
style
=
{{
marginTop
:
22
,
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
,
alignItems
:
'center'
,
marginTop
:
70
}}
>
<
View
>
<
Image
source
=
{{
uri
:
props
.
contact
.
photo
}}
style
=
{
styles
.
image
}
/
>
<
Text
style
=
{
styles
.
contactProps
}
>
Name
:
{
props
.
contact
.
name
}
<
/Text
>
...
...
@@ -24,14 +24,14 @@ export default FullContact;
const
styles
=
StyleSheet
.
create
({
image
:
{
width
:
2
0
0
,
height
:
2
0
0
,
width
:
2
5
0
,
height
:
2
5
0
,
marginRight
:
10
},
btn
:
{
position
:
'absolute'
,
bottom
:
0
,
padding
:
2
0
,
padding
:
4
0
,
borderRadius
:
5
,
backgroundColor
:
'rgba(0,0,0,0.7)'
,
width
:
'100%'
...
...
containers/Main/Main.js
View file @
6ff2ba1c
...
...
@@ -26,14 +26,13 @@ class Main extends Component {
render
()
{
let
contacts
=
[];
for
(
let
contact
in
this
.
props
.
contacts
)
{
let
contactProps
=
this
.
props
.
contacts
[
contact
];
contacts
.
push
(
{
id
:
contact
,
photo
:
contactProps
.
photo
,
name
:
contactProps
.
name
,
email
:
contactProps
.
email
,
phone
:
contactProps
.
phone
name
:
this
.
props
.
contacts
[
contact
].
name
,
photo
:
this
.
props
.
contacts
[
contact
]
.
photo
,
email
:
this
.
props
.
contacts
[
contact
].
email
,
phone
:
this
.
props
.
contacts
[
contact
].
phone
,
id
:
contact
})
}
return
(
...
...
@@ -67,7 +66,6 @@ class Main extends Component {
}
}
const
mapStateToProps
=
state
=>
{
return
{
contacts
:
state
.
contacts
...
...
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