You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Today the iOS Image component can open local images only if the image is in the same Bundle as the application.
The Android need to implement a function to map the image id with the actual source file.
Proposal
In the iOS, use a similar approach as the android by adding a function to be conformed that is responsible for getting the image based at its ID. So the user will map the images IDs to the source files in any way that convenient, including another bundles.
Android could have a default implementation of the map function using the image name and mapping to the most common assets path in the platform. It will still possible to override this default implementation to the user needs as already is today.
Use case
In the iOS case, the application would get the possibility to open files from another Bundles.
The Android platform will be more simple to configure in simple cases.
The text was updated successfully, but these errors were encountered:
Problem
Today the iOS Image component can open local images only if the image is in the same Bundle as the application.
The Android need to implement a function to map the image id with the actual source file.
Proposal
In the iOS, use a similar approach as the android by adding a function to be conformed that is responsible for getting the image based at its ID. So the user will map the images IDs to the source files in any way that convenient, including another bundles.
Android could have a default implementation of the map function using the image name and mapping to the most common assets path in the platform. It will still possible to override this default implementation to the user needs as already is today.
Use case
In the iOS case, the application would get the possibility to open files from another Bundles.
The Android platform will be more simple to configure in simple cases.
The text was updated successfully, but these errors were encountered: