Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Improve Image #968

Closed
victorrabelozup opened this issue Sep 30, 2020 · 0 comments
Closed

Improve Image #968

victorrabelozup opened this issue Sep 30, 2020 · 0 comments
Labels
enhancement New feature or request epic Global features request

Comments

@victorrabelozup
Copy link
Contributor

victorrabelozup commented Sep 30, 2020

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.

@uziasferreirazup uziasferreirazup added enhancement New feature or request epic Global features request labels Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request epic Global features request
Projects
None yet
Development

No branches or pull requests

3 participants