Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Not able to move crop overlay on Android devices. #41

Closed
giriprabu opened this issue Jun 7, 2021 · 5 comments
Closed

Not able to move crop overlay on Android devices. #41

giriprabu opened this issue Jun 7, 2021 · 5 comments

Comments

@giriprabu
Copy link

giriprabu commented Jun 7, 2021

It is not possible to move or change the size of the crop overlay on Android devices. I tested this on Samsung s20FE and Pixel 3a both running Android 11. Can you please check this issue on your side? The editor is working fine on iOS devices.

@mmelilli
Copy link

mmelilli commented Jun 22, 2021

I confirm it doesn't work on android 11 (i'm testing in a Pixel 3a too)

@Svarto
Copy link

Svarto commented Jul 11, 2021

Same problem here, anyone found a fix?

@giriprabu
Copy link
Author

I forked the expo-image-editor library and changed the library code to fix the issue. I then installed the library directly from the forked git rather than from npm. Hope this helps.

@thomas-coldwell
Copy link
Owner

Hey folks sorry for the inactivity! This should be fixes in the latest release v1.6.0 now - a bit of a workaround was required - it was an issue with React Navigation and the use of the GestureHandlerRootView we use in the modal - full issue can be read here react-navigation/react-navigation#9757.

In the meantime you will need to import the <ImageEditorView /> component from the library and then place that in a Stack Modal as per the React Navigation docs https://reactnavigation.org/docs/modal/

Hope this helps :)

@thomas-coldwell
Copy link
Owner

I've updated the docs to reflect this - you can now use it as a regular view (with no modal) using the asView prop. Then you can render this view in whatever you would like e.g. React Native Modal or React Navigation Stack Modal - the latter which will solve the issue you were facing on Android as per my last comment. Hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants