I have a need to take an image, and then edit that image so that I can crop to the boundaries the users select. Basically I am taking a picture of a text, and I want to be able to crop so I can skip the images and get a cleaned cropped image with only the text I want to send to the server. Has anyone tried this with Expo?
Or do I need to create a new project where I can link any native code? I saw a cool one called react-native-perspective-cropper, but then I can not use Expo which I really like. I googled the crap out of the webb, but no meaningful answers. Anyone has tried anything similar?
Yeah I tried that, but I could not set the boundaries of the result on iOS so the user can draw from side to side. Seem to be a limitation of the module it wraps, the iOS cropping always has a predefined square. I need the user to be able to crop to the desired size. Any ideas?
Hi… I don’t know what I am doing wrong, but I guess it has to do with my lack not reading up on async await yet … I know I get the prop called uri but I get yellow box error when trying out the code below. I know it is not immediately related to my question above, but I am stuck for the last two hours from trying to implement the ImageManipulator.
If you have time, could you get some pointers on how to load the Image? I get no valuable feedback in my debugger, just a yellow-box error of an unhandled promise rejection. TypeError: Cannot read property ‘hash’ of undefined. Tried the forum and searching online
Ok finally got it working, but it doesn’t allow the user to crop to selected size. It only crops with the selected parameters of the crop object. I need a solution where the user can take an image, and then crop it to their selection. Any ideas?
I was almost thinking about creating a web-view, to use a lib like react-image-crop, but it would be nice to avoid adding a React web-page inside the app. I also don’t know how it will actually work on a mobile device.
Since I had so many problems using the ImageManipulator, Ill add my working code for pushing a uri via props which is missing in the code example (which for sure is broken too).