Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to copy images to xcassets? #3

Open
alaughlin opened this issue Apr 27, 2024 · 5 comments
Open

How to copy images to xcassets? #3

alaughlin opened this issue Apr 27, 2024 · 5 comments

Comments

@alaughlin
Copy link

alaughlin commented Apr 27, 2024

I am attempting to use this library to show native context menus:
https://www.npmjs.com/package/react-native-context-menu-view

This requires custom icons to be added to xcassets. I thought this library would do that, however it just seems to be copying my assets to ios/Assets?

Is that supposed to be happening with this library? If not, does anyone know how to do this with an expo managed workflow?

@mzaien
Copy link
Collaborator

mzaien commented Apr 27, 2024

Hello @alaughlin thanks for reaching out, currently yes our library does not add assets as an xcassets asset, tho we can implement this as a extra feature but what exaclty do you want it to do just adds assets under Assets.xcassets or what ?

@lxp-git
Copy link

lxp-git commented Jun 21, 2024

expo sdk 51 add this feature.

load-an-asset-at-build-time

@mzaien
Copy link
Collaborator

mzaien commented Jun 21, 2024

expo sdk 51 add this feature.

Great can you like the docs for this? @lxp-git

@christophemenager
Copy link

expo sdk 51 add this feature.

load-an-asset-at-build-time

@lxp-git Not true, for now it only supports limited file extensions: https://docs.expo.dev/versions/latest/sdk/asset/, and .riv is not one of them

@mzaien
Copy link
Collaborator

mzaien commented Jul 1, 2024

expo sdk 51 add this feature.
load-an-asset-at-build-time

@lxp-git Not true, for now it only supports limited file extensions: https://docs.expo.dev/versions/latest/sdk/asset/, and .riv is not one of them

Thanks for adding the reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants