react-native-context-menu-view icon indicating copy to clipboard operation
react-native-context-menu-view copied to clipboard

custom icon

Open chenxiang39 opened this issue 3 years ago • 5 comments

i just want custom icon........ help me.....

chenxiang39 avatar Apr 27 '21 13:04 chenxiang39

+1

tomgreco avatar Feb 23 '22 22:02 tomgreco

+2

fukemy avatar Apr 18 '22 13:04 fukemy

+3

ghost avatar Jun 06 '22 16:06 ghost

+4

elouisramsey avatar Jun 11 '22 23:06 elouisramsey

This is next on my list, but I'm not sure the best way to tackle it yet. Stay tuned

mpiannucci avatar Jun 12 '22 02:06 mpiannucci

+1 This is a decision maker for me

radekzz avatar Dec 09 '22 11:12 radekzz

This is next on my list, but I'm not sure the best way to tackle it yet. Stay tuned

Any updates on this?

SaeedMuhaisen avatar Jan 31 '24 22:01 SaeedMuhaisen

Now supported in version 1.15.0

mpiannucci avatar Feb 20 '24 18:02 mpiannucci

@mpiannucci & @wilmxre Thanks for adding this feature and for a great library. Its very difficult to add android icons for expo managed app. any suggestions?

sraut1 avatar Mar 12 '24 19:03 sraut1

@mpiannucci & @wilmxre Thanks for adding this feature and for a great library. Its very difficult to add android icons for expo managed app. any suggestions?

i think there is an expo config plugin that you can use to add drawable resources in android.

wilmxre avatar Mar 12 '24 19:03 wilmxre

Thanks for quick response @wilmxre, I am looking for such plugin but not able to find the good documentation for it.

sraut1 avatar Mar 12 '24 19:03 sraut1

take a look at this: https://stackoverflow.com/a/76773373/13582097

you will need to run expo prebuild to generate the native ios and android directories (you can add the -p option to only generate the android directory).

you can then add the xml files of the desired icons either by dropping them under android/app/src/main/res/drawable manually or by adding a config plugin that will do it for you so you don't have to interact with the native directories at all.

just make sure that after you've generated the directories and added the icons, create a custom dev build

wilmxre avatar Mar 13 '24 10:03 wilmxre

Thanks @wilmxre, We prebuild and generate the native folders, but we refrain from committing them into the codebase. While exploring the linked Stack Overflow solution you provided, I pondered whether modifying files on the fly would be a sound practice or efficient. Nonetheless, I'm willing to give it a try. Thank you for your assistance

sraut1 avatar Mar 13 '24 18:03 sraut1

@sraut1 just curious if you ever figured this out? I am wondering how in the world you add images to xcassets and drawables in expo managed apps. it doesn't seem to be documented anywhere.

alaughlin avatar Apr 26 '24 20:04 alaughlin

i don't think there is something to lose if you generate the native directories and add them manually. i think the go to way to build expo apps, is by creating custom dev builds, where you get access to the native android and ios folders. using only expo go is very limiting and it is meant to be used only as a quick prototyping tool. you can also play around with expo config plugins.

wilmxre avatar Apr 27 '24 16:04 wilmxre

@sraut1 @alaughlin you should look into this: https://docs.expo.dev/versions/v51.0.0/sdk/asset/#configuration-in-appjsonappconfigjs

wilmxre avatar May 15 '24 07:05 wilmxre

@wilmxre Thanks man, I am excited for expo 51 lot of cool features.

sraut1 avatar May 15 '24 17:05 sraut1

@alaughlin try this library: react-native-popup-menu you can customize the pop up menu

sraut1 avatar May 15 '24 17:05 sraut1