brunon80 / expo-image-crop

Crop and rotate image without detach your expo project!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rotate functionality doesnt work in recent update

edoantonioco opened this issue · comments

if you press Rotate yo get a black screen and next error.

[Unhandled promise rejection: Error: Cannot load an empty url]
- node_modules/react-native/Libraries/Network/XMLHttpRequest.js:461:22 in open
* src/componentes/TomarFoto.js:188:15 in toDataURL$
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:271:30 in invoke
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:135:28 in invoke
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:170:17 in <unknown>
- node_modules/promise/setimmediate/core.js:45:7 in tryCallTwo
- node_modules/promise/setimmediate/core.js:200:23 in doResolve
- node_modules/promise/setimmediate/core.js:66:12 in Promise
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:169:27 in callInvokeWithMethodAndArg
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:192:38 in enqueue
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:216:8 in async
* src/componentes/TomarFoto.js:193:14 in getBase64FromUrl$
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:271:30 in invoke
- ... 13 more stack frames from framework internals

I did the change of source.uri instead of just source, in my code

I will check it now, thanks!

resolved on expo-image-crop@0.2.16

I can still reproduce this bug in latest version

In apk release, it did work