This library is using ContentProvider on Android as a mean to read image data and as such should accept all schemes handled by ContentProvider. Before this PR only URIs with file and content schemas were recognized as local URIs . This PR adds android.resource scheme what enables us to read apps resources.
Test Plan
Try to read any app asset such as "android.resource:///drawable/.png"
What's required for testing (prerequisites)?
Adding some android asset to the app and trying to crop it.
What are the steps to reproduce (after prerequisites)?
Try to read any app asset such as "android.resource:///drawable/.png"
EX: User is able to read that asset
AR: User is not able to read that asset
Compatibility
OS
Implemented
Android
✅
Checklist
[X ] I have tested this on a device and a simulator
[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)
Summary
This library is using ContentProvider on Android as a mean to read image data and as such should accept all schemes handled by ContentProvider. Before this PR only URIs with file and content schemas were recognized as local URIs . This PR adds android.resource scheme what enables us to read apps resources.
Test Plan
What's required for testing (prerequisites)?
Adding some android asset to the app and trying to crop it.
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md
CHANGELOG.md
example/App.js
)