Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
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
Prasetya Saputra
clone_excelso
Commits
bd26e543
Commit
bd26e543
authored
Jun 11, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matiin tombol telpon driver saat orderan selesai
parent
bcfc5399
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
22 deletions
+62
-22
package-lock.json
package-lock.json
+36
-0
OrderDetail.js
view/OrderDetail.js
+26
-22
No files found.
package-lock.json
View file @
bd26e543
...
@@ -6844,6 +6844,15 @@
...
@@ -6844,6 +6844,15 @@
"htmlparser2"
:
"^4.0.0"
"htmlparser2"
:
"^4.0.0"
}
}
},
},
"react-native-root-siblings"
:
{
"version"
:
"3.2.3"
,
"resolved"
:
"https://registry.npmjs.org/react-native-root-siblings/-/react-native-root-siblings-3.2.3.tgz"
,
"integrity"
:
"sha512-wOCCtKJteaSIW3K++hzhkfdWRikTqjrG34DnhNDVSzKatuNQyFY1fPBD1YFT/3+kxOIUmNsJdiaPMao9QgoZMA=="
,
"requires"
:
{
"prop-types"
:
"^15.6.2"
,
"static-container"
:
"^1.0.0"
}
},
"react-native-safe-area-context"
:
{
"react-native-safe-area-context"
:
{
"version"
:
"0.6.0"
,
"version"
:
"0.6.0"
,
"resolved"
:
"https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-0.6.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-0.6.0.tgz"
,
...
@@ -6923,6 +6932,28 @@
...
@@ -6923,6 +6932,28 @@
"prop-types"
:
"^15.5.10"
"prop-types"
:
"^15.5.10"
}
}
},
},
"react-native-tiny-toast"
:
{
"version"
:
"1.0.7"
,
"resolved"
:
"https://registry.npmjs.org/react-native-tiny-toast/-/react-native-tiny-toast-1.0.7.tgz"
,
"integrity"
:
"sha512-nxXGE5L1N/JJCbqrICIRy5KRPISqqum7KeB8z/FDi2VYrE+6V9dfY3Cx1ovo+XPNFQiJDrZt+itIzt9xpMAoUA=="
,
"requires"
:
{
"prop-types"
:
"^15.7.2"
,
"react-native-iphone-x-helper"
:
"1.2.1"
,
"react-native-root-siblings"
:
"3.2.3"
},
"dependencies"
:
{
"prop-types"
:
{
"version"
:
"15.7.2"
,
"resolved"
:
"https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz"
,
"integrity"
:
"sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ=="
,
"requires"
:
{
"loose-envify"
:
"^1.4.0"
,
"object-assign"
:
"^4.1.1"
,
"react-is"
:
"^16.8.1"
}
}
}
},
"react-native-vector-icons"
:
{
"react-native-vector-icons"
:
{
"version"
:
"6.6.0"
,
"version"
:
"6.6.0"
,
"resolved"
:
"https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-6.6.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-6.6.0.tgz"
,
...
@@ -7922,6 +7953,11 @@
...
@@ -7922,6 +7953,11 @@
"type-fest"
:
"^0.7.1"
"type-fest"
:
"^0.7.1"
}
}
},
},
"static-container"
:
{
"version"
:
"1.5.1"
,
"resolved"
:
"https://registry.npmjs.org/static-container/-/static-container-1.5.1.tgz"
,
"integrity"
:
"sha512-OFChfLKIvSzaMA3otS5CEabJTIzHFPhMxogIT+io4F207PXTvS6woFyjXIyXyqMIYAhryePGeFZYC6uLcG1lpA=="
},
"static-extend"
:
{
"static-extend"
:
{
"version"
:
"0.1.2"
,
"version"
:
"0.1.2"
,
"resolved"
:
"https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz"
,
"resolved"
:
"https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz"
,
...
...
view/OrderDetail.js
View file @
bd26e543
...
@@ -328,28 +328,32 @@ class OrderDetail extends React.Component {
...
@@ -328,28 +328,32 @@ class OrderDetail extends React.Component {
this
.
state
.
detail_trans
.
grab_driver_name
==
''
?
(
this
.
state
.
detail_trans
.
grab_driver_name
==
''
?
(
null
null
)
:
(
)
:
(
<
View
style
=
{{
flex
:
0.3
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
,
flexDirection
:
'row'
}}
>
this
.
state
.
trans_status
==
4
||
this
.
state
.
trans_status
==
-
1
?
(
<
View
style
=
{{
paddingLeft
:
30
}}
>
null
<
TouchableOpacity
onPress
=
{()
=>
{
Linking
.
openURL
(
'tel:'
+
this
.
state
.
detail_trans
.
grab_driver_phone
)
}}
>
)
:
(
<
Icon
<
View
style
=
{{
flex
:
0.3
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
,
flexDirection
:
'row'
}}
>
name
=
'ios-call'
<
View
style
=
{{
paddingLeft
:
30
}}
>
type
=
'ionicon'
<
TouchableOpacity
onPress
=
{()
=>
{
Linking
.
openURL
(
'tel:'
+
this
.
state
.
detail_trans
.
grab_driver_phone
)
}}
>
color
=
'#838383'
<
Icon
size
=
{
30
}
name
=
'ios-call'
/
>
type
=
'ionicon'
<
/TouchableOpacity
>
color
=
'#838383'
<
/View
>
size
=
{
30
}
<
View
>
/
>
<
TouchableOpacity
onPress
=
{()
=>
{
Linking
.
openURL
(
'whatsapp://send?text=say something&phone='
+
this
.
state
.
detail_trans
.
grab_driver_phone
)
}}
>
<
/TouchableOpacity
>
<
Icon
<
/View
>
name
=
'whatsapp'
<
View
>
type
=
'font-awesome'
<
TouchableOpacity
onPress
=
{()
=>
{
Linking
.
openURL
(
'whatsapp://send?text=say something&phone='
+
this
.
state
.
detail_trans
.
grab_driver_phone
)
}}
>
color
=
'green'
<
Icon
size
=
{
30
}
name
=
'whatsapp'
/
>
type
=
'font-awesome'
<
/TouchableOpacity
>
color
=
'green'
<
/View
>
size
=
{
30
}
<
/View
>
/
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
)
)
)
}
}
<
/View
>
<
/View
>
...
...
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