react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

App returns to first screen after image selection (regarding splash screen)

Open SteveTro opened this issue 3 years ago • 4 comments

Version

Tell us which versions you are using:

  • react-native-image-crop-picker 0.36.0
  • react-native v0.60.5

Platform

Tell us to which platform this issue is related

  • Android

Expected behaviour

Select an image from camera or gallery and update the source of an image view with the result path

Actual behaviour

After the selection or crop of the image the app returns to the welcome screen of the application

I use the image picker in some different places in the application. If i use it inside the authenticated tab navigator everything works fine. If i use the picker on my second screen after the welcome screen the app returns / restarts always to the welcome screen.

After a lot of trial and error I found out that it has something to do with react-native-splash-screen. If I comment out SplashScreen.show(this) in the MainActivity everything works.

Someone has an idea how to fix this?

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

SteveTro avatar Mar 20 '21 21:03 SteveTro