react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

fix: do not crash on double select #476

Closed vonovak closed 3 years ago

vonovak commented 3 years ago

Summary

adds a promise wrapper on ios that allow to gracefully handle race conditions.

Closes #393. While I wasn't unfortunately able to reproduce the original issue, this should fix it.

Test Plan

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

as seen in #393 , open doc picker and tap a file several times in quick succession

Compatibility

OS Implemented
iOS ✅❌
Android ✅❌

Checklist