react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Fix maxFiles limit for Android image picker
Description
This PR fixes the maxFiles option for Android image picker. Previously, the maxFiles option was documented in the README but wasn't properly implemented for Android devices.
Changes
- Refactored the image picker initialization on Android to use the modern photo picker API
- Added proper implementation of
maxFileslimit for Android - Added fallback to the classic picker if the modern picker is not available
Testing
- Tested on Android 12, 13, and 14
- Verified both single and multiple selection modes work correctly
- Confirmed that the
maxFileslimit is properly enforced on Android
Hi @ivpusic 👋 Just following up on this PR — it's been a few weeks without any feedback. This fixes a documented but unimplemented maxFiles option for Android and has been tested on recent Android versions. Let me know if any changes or reviews are needed. Appreciate your time!
@zahidalidev thanks! could you resolve a merge conflict, and I will merge it afterwards