react-native-expo-image-cropper
react-native-expo-image-cropper copied to clipboard
Image preview misalligned.
- 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.

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.
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):

- Only test on mine, so I'm not sure it will work for for others.
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, 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:

In the case the package no more support SDK 41, you may need to consider other package. Sorry about that.
Closing this since seems no any response.