I am using react-native-image-picker 2.3.1, react-native 0.63.3 and react 16.3.1. When using the image picker to launch the camera, on some devices (Samsung devices, Android 10, both tablets and phones), after the user takes the picture, the react-native application will reinitialize itself without any error or proper warning. The behavior is not consistent: sometimes, the user can only take 1 photo and the application restarts, other times it happens on the 33th photo taken. The behavior could not be reproduced in emulator nor in different devices like One plus or Motorola. The system logcat log only shows few relevant details, the ones I could narrow done being:
15533-15533/? E/com.sfsdriver: Unknown bits set in runtime_flags: 0x8000
E/InputDispatcher: channel 'd0f2b6f com.sfsdriver/com.sfsdriver.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! (probably happening after the app is no longer active)
E/memtrack: Couldn't load memtrack module
There are also lines like this: 7165-13038/com.sfsdriver I/ReactNativeJNI: Memory warning (pressure level: TRIM_MEMORY_COMPLETE) received by JS VM, running a GC which happen both when the application succedes in returning to the application activity after taking a picture and when the application restarts.
I also tried with the following react-native libraries: expo-image-picker, react-native-image-picker:v3.0.0-vnext.3