Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29457

How use notification icon from React Native app to some RNBridge?

$
0
0

I created a bridge to React Native to work with Oracle-Responsys SDK.

The bridge is working pretty well, but the only thing that I'm stuck is in how can I set the notifications icons from my react native app to this bridge.

Following the documentations from Responsys:

PushIOManager.getInstance(this).setDefaultSmallIcon(R.drawable.emo_im_surprised);PushIOManager.getInstance(this).setDefaultLargeIcon(R.drawable.emo_im_happy);

Notes: The Integer value must be a resource ID generated by the build system. In the calls above, the icon name represents the Integer value. For example, R.drawable.emo_im_surprised is the Integer value of the icon emo_im_surprised.png that has been placed in the drawable folder.

I got this, but this R.drawable references my bridge`s drawable not the app drawable, how can i use the icons from my app inside my bridge?


Viewing all articles
Browse latest Browse all 29457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>