React-native-image-crop-picker: IOS bug when trying to open a second time.

Created on 11 Dec 2019  ·  2Comments  ·  Source: ivpusic/react-native-image-crop-picker

Hello, i have the following problem on IOS devices:

When using .openCamera and .openPicker the first attempt works as expected, it opens the camera or the image library, but when i close it and try to open a second time it just freezes and nothing happens. It works fine on android devices. Help will be appreciated.

Solution 1:

It works fine when i put the .openCamera or .openPicker in a setTimeout with 500ms, but i don't think thats a good solution.

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.25.0
  • react-native v0.61.2

Platform

Tell us to which platform this issue is related

  • iOS

Steps to reproduce

  1. Open freshly installed app on an IOS device.

  2. Open camera or photo library and take or choose a photo.

  3. Try to open camera or photo library again.

Most helpful comment

I was troubleshooting the same issue. We had an additional action-sheet UI before calling .openPicker API, which makes the picker UI invisible.

Waiting 500ms partially solved this problem, but we chose to disable that action-sheet.

Hope we have a better solution.

All 2 comments

I was troubleshooting the same issue. We had an additional action-sheet UI before calling .openPicker API, which makes the picker UI invisible.

Waiting 500ms partially solved this problem, but we chose to disable that action-sheet.

Hope we have a better solution.

Hello, I found the underlying reason of the problem thanks to Sentry.

“C0FFDCC1-47D0-4180-B263-A77A5F0739C0.jpg” couldn’t be copied to “tmp” because an item with the same name already exists.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fmcruz picture fmcruz  ·  3Comments

tximpa91 picture tximpa91  ·  3Comments

althurzard picture althurzard  ·  3Comments

leelandclay picture leelandclay  ·  3Comments

DISKONEKTeD picture DISKONEKTeD  ·  3Comments