Open hackrx opened 3 years ago
I had some similar behavior with my app unmounting immediately when putting it into the background and also when opening the cropper from this lib. after hours of research with no results i endet up on this article:
https://medium.com/mindorks/hey-android-please-keep-my-activities-7bf96ccc0a38
turns out, i had activated the option "Don’t Keep Activities" in the developer options of my phone which causes the MainActivity with rn app to be destroyed once you start another activity (like imagecropper)
@tobikl1 Maybe you will still experience this issue even you disabled "Don’t Keep Activities" due to #955 ?
Version
-"react-native-image-crop-picker": "^0.35.1",
Platform
Tell us to which platform this issue is related
Expected behaviour
When openCropper called app should not unmount because openCropper is not returning the image path in then()
Actual behaviour
After cropping image, app restarts and navigate to Home screen (Default ) , while I was on Upload screen.
Steps to reproduce
componentDidMount(){ this.mount = true; this.cropReceivedImage(); }