Commit 16ea3c73 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

seting margin account

parent d2d6dbb9
...@@ -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>
......
...@@ -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({
......
...@@ -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,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment