react-native-expo-image-cropper icon indicating copy to clipboard operation
react-native-expo-image-cropper copied to clipboard

Image preview misalligned.

Open HakamRaza opened this issue 4 years ago • 4 comments

  • Hi, i have a issue on the image positioning at preview. The image is at the top of the the preview, not at the center.
  • I also encounter this warning: Could not find a declaration file for module 'react-native-expo-image-cropper'.
  • I'm using expo SDK ver 39.0, Typescript, test on android platform.
  • Thank you for any help.

153610142_138814861446324_634334293185508623_n

HakamRaza avatar Feb 23 '21 13:02 HakamRaza

Hi @HakamRaza, were you able to find a solution to this issue on the same package or from a different package? This is broken on SDK41 on Android. Any help would be great. Thank you.

giriprabu avatar Jun 08 '21 10:06 giriprabu

Hi @giriprabu, currently i'm using other package as an alternative (sorry ! ).

  • The declaration issue is due to Ts d.ts file is unavailable inside the package which is not a major issue using this package.

  • You can use https://github.com/ds300/patch-package#readme to patch the package by modifying the ExpoImageManipulator.js at this code portion to fix the alignment (or fork/ pr this repo):

image

  • Only test on mine, so I'm not sure it will work for for others.

HakamRaza avatar Jun 09 '21 02:06 HakamRaza

Hi @HakamRaza, Thank you for the reply. Can you please share the rest of the code? I am only seeing this code as new in this. ref={"imageScrollView"} This didn't fix the alignment issue for me. If you can share the rest of the code from ExpoImageManipulator.js that would be helpful for me.

giriprabu avatar Jun 09 '21 05:06 giriprabu

@giriprabu, oh yeah, since I'm using it for SDK 39, maybe this package dependencies no more support SDK 41. Yup, I only change this part for me to fix the alignment: image

In the case the package no more support SDK 41, you may need to consider other package. Sorry about that.

HakamRaza avatar Jun 10 '21 00:06 HakamRaza

Closing this since seems no any response.

HakamRaza avatar Nov 22 '22 04:11 HakamRaza