jordanbyron/react-native-quick-actions

How to use an icon placed in drawable folder for shortcuts in android?

Closed this issue · 3 comments

I have currently placed set of icons in drawable folder, but react-native-quick-actions is unable to pick up the icon and it keeps displaying that android logo.

How can I use my own icons?

Doing a quick read of the code it appears you can: https://github.com/madriska/react-native-quick-actions/blob/master/android/src/main/java/com/reactNativeQuickActions/AppShortcutsModule.java#L105-L106

In fact it looks like you can only pull icons from your package, unless I am misunderstanding how those two lines of code work.

I got it working in the drawable folder just had to rename my icons to make sure they had no uppercase characters or dashes and re install the app would be nice if this was in the documentation.