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
16ea3c73
Commit
16ea3c73
authored
Jun 19, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seting margin account
parent
d2d6dbb9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Account.js
view/Account.js
+1
-1
Camera.js
view/Camera.js
+3
-2
UpgradePremium.js
view/UpgradePremium.js
+2
-0
No files found.
view/Account.js
View file @
16ea3c73
...
@@ -404,7 +404,7 @@ class Account extends React.Component {
...
@@ -404,7 +404,7 @@ class Account extends React.Component {
)
)
}
}
<
View
style
=
{{
flex
:
1
,
marginBottom
:
10
}}
>
<
View
style
=
{{
flex
:
1
,
marginBottom
:
20
,
marginTop
:
25
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleSettings
()}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleSettings
()}
>
{
Platform
.
OS
===
'ios'
?
(
{
Platform
.
OS
===
'ios'
?
(
<
Text
style
=
{{
color
:
'grey'
,
fontSize
:
12
,
textAlign
:
'center'
}}
>
Version
{
Constants
.
manifest
.
version
}
Build
{
Constants
.
manifest
.
ios
.
buildNumber
}
<
/Text
>
<
Text
style
=
{{
color
:
'grey'
,
fontSize
:
12
,
textAlign
:
'center'
}}
>
Version
{
Constants
.
manifest
.
version
}
Build
{
Constants
.
manifest
.
ios
.
buildNumber
}
<
/Text
>
...
...
view/Camera.js
View file @
16ea3c73
...
@@ -57,7 +57,7 @@ class Cameras extends React.Component {
...
@@ -57,7 +57,7 @@ class Cameras extends React.Component {
takePictureSelfie
=
async
()
=>
{
takePictureSelfie
=
async
()
=>
{
if
(
this
.
camera
)
{
if
(
this
.
camera
)
{
let
photo
=
await
this
.
camera
.
takePictureAsync
({
skipProcessing
:
true
});
let
photo
=
await
this
.
camera
.
takePictureAsync
({
skipProcessing
:
true
,
quality
:
0.1
});
let
photo_img
=
photo
.
uri
;
let
photo_img
=
photo
.
uri
;
const
base64
=
await
FileSystem
.
readAsStringAsync
(
photo_img
,
{
encoding
:
'base64'
});
const
base64
=
await
FileSystem
.
readAsStringAsync
(
photo_img
,
{
encoding
:
'base64'
});
// var set_photo = photo.replace('uri','')
// var set_photo = photo.replace('uri','')
...
@@ -74,7 +74,7 @@ class Cameras extends React.Component {
...
@@ -74,7 +74,7 @@ class Cameras extends React.Component {
takePictureIdCard
=
async
()
=>
{
takePictureIdCard
=
async
()
=>
{
if
(
this
.
camera
)
{
if
(
this
.
camera
)
{
let
photo
=
await
this
.
camera
.
takePictureAsync
({
skipProcessing
:
true
});
let
photo
=
await
this
.
camera
.
takePictureAsync
({
skipProcessing
:
true
,
quality
:
0.1
});
let
photo_img
=
photo
.
uri
;
let
photo_img
=
photo
.
uri
;
const
base64
=
await
FileSystem
.
readAsStringAsync
(
photo_img
,
{
encoding
:
'base64'
});
const
base64
=
await
FileSystem
.
readAsStringAsync
(
photo_img
,
{
encoding
:
'base64'
});
// var set_photo = photo.replace('uri','')
// var set_photo = photo.replace('uri','')
...
@@ -106,6 +106,7 @@ class Cameras extends React.Component {
...
@@ -106,6 +106,7 @@ class Cameras extends React.Component {
this
.
props
.
setUriSelfi
(
UriProps
);
this
.
props
.
setUriSelfi
(
UriProps
);
this
.
props
.
setpickimageSelfieProps
(
setpickSelfie
);
this
.
props
.
setpickimageSelfieProps
(
setpickSelfie
);
this
.
props
.
navigation
.
navigate
(
"Upgrade Premium"
)
this
.
props
.
navigation
.
navigate
(
"Upgrade Premium"
)
console
.
log
(
"INI BASE 64 : "
+
base64
)
//false
//false
}
else
{
}
else
{
let
result
=
await
ImagePicker
.
launchImageLibraryAsync
({
let
result
=
await
ImagePicker
.
launchImageLibraryAsync
({
...
...
view/UpgradePremium.js
View file @
16ea3c73
...
@@ -179,6 +179,8 @@ class UpgradePremium extends React.Component {
...
@@ -179,6 +179,8 @@ class UpgradePremium extends React.Component {
''
,
''
,
response
.
msg
,
response
.
msg
,
)
)
// console.log("INI BASE64 SELFI :" + URI)
// console.log("INI BASE64 ID :" + URI_IDCARD)
this
.
setState
({
this
.
setState
({
spinner
:
false
,
spinner
:
false
,
})
})
...
...
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