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

Custom image/icon #680

Open
Bilalwarind opened this issue Jan 27, 2024 · 6 comments
Open

Custom image/icon #680

Bilalwarind opened this issue Jan 27, 2024 · 6 comments

Comments

@Bilalwarind
Copy link

Bilalwarind commented Jan 27, 2024

How we can use custom image or icon from assets folder other than SF symbols?

@Gregoirevda
Copy link
Contributor

patch the library and use UIImage(named: image)

@Gregoirevda
Copy link
Contributor

Gregoirevda commented Mar 27, 2024

@Bilalwarind Seems like this was merged: https://github.com/react-native-menu/menu/pull/731/files
but not depoyed to npmjs yet

@ptahdunbar
Copy link

@Gregoirevda @Gregoirevda its deployed in 1.0.0 — but how do you use it?

@honcon
Copy link
Contributor

honcon commented Apr 26, 2024

You can pass the image name from an image you have put in xcassets

@alaughlin
Copy link

@honcon are you able to elaborate a little more for us react native devs who never really have to touch the native code? in my case I'm using EAS so the ios dir isn't even part of the repo - it's generated at build time

@honcon
Copy link
Contributor

honcon commented May 2, 2024

I think something like this https://github.com/EvanBacon/expo-apple-targets could be a solution

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

5 participants