Skip to content

Another way to load assets #1

@ericcAtGitHub

Description

@ericcAtGitHub

Hi,

First of all thanks for making this repo. I think many people including me have problems in implementing Play Asset Delivery with React Native / expo, and this repo provides a solution.

I just want to mention that there is another way to load the assets (at least when the delivery mode is "install-time" - I haven't checked the others). As suggested in
https://stackoverflow.com/questions/73389621/play-asset-delivery-in-react-native
facebook/react-native#21309 (comment)
we can load the assets like this:
<Image source={{ uri: "asset:/trees.jpeg" }} style={{ height: 100, width: 100 }}></Image>.
In fact, when I follow the provided example and use loadPackedAssetAsBase64 from the package, I only succeed in showing small images and fail to show large (~2 MB) images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions