Samsung Galaxy S5 Android 6.0.1
Huaway Y6 Pro 5.1

When I open file manager with DocumentPicker.show(), then go into some folder and then click system back button, system show me alert: Bad result code: 0. I cannot fix it(((
Oh have to look into that!
resultCode 0 is the result code for user cancellation of the picker, RNDP doesn't handle it.
I've added a proper cancellation error for both Android and iOS and a simple way of checking for them: https://github.com/Elyx0/react-native-document-picker/pull/77/commits/8648b12b12cac2ae1f27e89d45319382cc09937d
Several users are also seeing this resultCode 0 in my application, even when they did not cancel: https://github.com/laurent22/joplin/issues/177
Not sure what the issue is, maybe the module is incorrectly interpreting the response from the Android file manager. Unfortunately I cannot replicate this in the simulator.
I also receive "Bad result code: 0" when invoking DocumentPicker.show() on Android 4.2.2 ASUS tablet. However, on Android 7.0 Samsung Galaxy J7 everything is ok with the same code.
It seems it can happen on any device, but I've never managed to replicate it on an emulator. Some users have reported it happens on relatively recent devices like Pixel 2 running Oreo 8.1.
Is there any known fix for this issue? It seems it's still happening.
I used react-native-file-picker on Android