Malaa-tech / expo-custom-assets

Expo plugin to add custom assets to native codebase
25 stars 3 forks source link

How to copy images to xcassets? #3

Open alaughlin opened 2 months ago

alaughlin commented 2 months ago

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 commented 2 months ago

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 commented 1 week ago

expo sdk 51 add this feature.

load-an-asset-at-build-time

mzaien commented 1 week ago

expo sdk 51 add this feature.

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

christophemenager commented 3 days ago

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 commented 3 days ago

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