Commit 3ce5a4c5 by Giang Tran

delete crop image

parent c02924b5
......@@ -104,8 +104,7 @@ const Profile = (props) => {
});
props.showLoading();
const res = await verifyAccountApi(data);
props.hideLoading();
console.log(res);
if (res.data.code == 200) {
setTimeout(() => {
props.saveUserToRedux(res.data.data);
......
......@@ -35,7 +35,6 @@ const PickerImg = (props) => {
ImagePicker.openPicker({
mediaType: 'photo',
multiple: true,
cropping: true,
}).then((images) => {
setModalVisible(false);
......@@ -47,9 +46,6 @@ const PickerImg = (props) => {
const onCapture = () => {
ImagePicker.openCamera({
mediaType: 'photo',
width: 300,
height: 400,
cropping: true,
}).then((image) => {
setModalVisible(false);
......
......@@ -50,7 +50,6 @@ const PickerImgUni = (props) => {
ImagePicker.openPicker({
mediaType: 'photo',
multiple: false,
cropping: true,
}).then((image) => {
setModalVisible(false);
setUrlImg(image.path);
......@@ -62,9 +61,6 @@ const PickerImgUni = (props) => {
if (Platform.OS == 'android') checkPermissionAndroid();
ImagePicker.openCamera({
mediaType: 'photo',
width: 300,
height: 400,
cropping: true,
}).then((image) => {
setModalVisible(false);
setUrlImg(image.path);
......
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