How to use an icon placed in drawable folder for shortcuts in android?
Closed this issue · 3 comments
sahil290791 commented
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?
jordanbyron commented
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.
aidan-doherty commented
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.
jordanbyron commented
Can you submit a PR with the updated docs?
On Fri, Jan 12, 2018 at 4:50 AM Aidan ***@***.***> wrote:
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACe1tX71Yyy3lyFiPX9Vh8uchmirk6Bks5tJyrogaJpZM4P3_BL>
.
--
Jordan