Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
3d8a9f19
Commit
3d8a9f19
authored
Oct 18, 2017
by
Wietse Kuipers
Browse files
Merge branch 'feature/clickable_profile_link' into 'master'
Website is now clickable in the profile link See merge request
!77
parents
33b17fb8
d508d743
Pipeline
#7996
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/components/Profile.js
View file @
3d8a9f19
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
ScrollView
,
Text
,
View
,
Animated
,
TouchableOpacity
}
from
'
react-native
'
;
import
{
Linking
,
ScrollView
,
Text
,
View
,
Animated
,
TouchableOpacity
}
from
'
react-native
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
connect
}
from
'
react-redux
'
;
import
Icon
from
'
react-native-vector-icons/MaterialIcons
'
;
import
Icon
from
'
react-native-vector-icons/MaterialIcons
'
;
import
LinearGradient
from
'
react-native-linear-gradient
'
;
import
LinearGradient
from
'
react-native-linear-gradient
'
;
...
@@ -62,7 +62,12 @@ const getPersonalInfo = (profile) => {
...
@@ -62,7 +62,12 @@ const getPersonalInfo = (profile) => {
{
profileData
.
map
((
item
,
i
)
=>
(
{
profileData
.
map
((
item
,
i
)
=>
(
<
View
style
=
{[
styles
.
item
,
i
!==
0
&&
styles
.
borderTop
]}
key
=
{
item
.
title
}
>
<
View
style
=
{[
styles
.
item
,
i
!==
0
&&
styles
.
borderTop
]}
key
=
{
item
.
title
}
>
<
Text
style
=
{
styles
.
description
}
>
{
item
.
title
}
<
/Text
>
<
Text
style
=
{
styles
.
description
}
>
{
item
.
title
}
<
/Text
>
<
Text
style
=
{
styles
.
data
}
>
{
item
.
value
}
<
/Text
>
<
Text
style
=
{
item
.
title
===
'
Website
'
?
[
styles
.
data
,
styles
.
url
]
:
styles
.
data
}
onPress
=
{
item
.
title
===
'
Website
'
?
()
=>
Linking
.
openURL
(
`
${
item
.
value
}
`
)
:
null
}
>
{
item
.
value
}
<
/Text
>
<
/View
>
<
/View
>
))}
))}
<
/View>
,
<
/View>
,
...
...
app/components/style/profile.js
View file @
3d8a9f19
...
@@ -41,6 +41,9 @@ const styles = StyleSheet.create({
...
@@ -41,6 +41,9 @@ const styles = StyleSheet.create({
color
:
colors
.
gray
,
color
:
colors
.
gray
,
fontFamily
:
'
sans-serif-medium
'
,
fontFamily
:
'
sans-serif-medium
'
,
},
},
url
:
{
textDecorationLine
:
'
underline
'
,
},
sectionHeader
:
{
sectionHeader
:
{
backgroundColor
:
colors
.
background
,
backgroundColor
:
colors
.
background
,
fontFamily
:
'
sans-serif-medium
'
,
fontFamily
:
'
sans-serif-medium
'
,
...
...
Write
Preview
Supports
Markdown
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