Closed sebastiangrebe closed 4 years ago
Just as an idea, is it possible that the radar-android-sdk which is a dependency obviously for this react-native package is the cause for the problem? As saw that the sdk includes app icons like this: https://github.com/radarlabs/radar-sdk-android/tree/master/sdk/src/main/res/drawable-v24 This could maybe override the custom app icon of my app.
Just to track down this issue the same problem also occured for another react-native library: https://github.com/callstack/react-native-fbads/issues/174
Hey @Sebi55, thanks for the heads up. We're going to prefix the ic_launcher
file in the native SDK: https://github.com/radarlabs/radar-sdk-android/pull/87 We'll release this in the next week or two. In the meantime, maybe you can change your app icon file name as a workaround?
Hey @Sebi55, thanks for the heads up. We're going to prefix the
ic_launcher
file in the native SDK: radarlabs/radar-sdk-android#87 We'll release this in the next week or two. In the meantime, maybe you can change your app icon file name as a workaround?
Thanks for your response. I will probably just wait until you fix it in the SDK.
Hey @Sebi55, this should be fixed in react-native-radar
3.0.3
, which upgrades to Android SDK 3.0.2
. Give it a try and let us know!
I have found a weird bug when adding react-native-radar to a React Native project.
Until adding react-native-radar everything was working fine. In the moment when installing react-native-radar with yarn or npm my app launcher icons disappear for no reason.
Summary
I am a little bit unsure why that happens. I already tried getting react-native-radar directly from the git and switched out the gradle versions inside the package as they are not the default once provided with react native 0.62.2 but this did not work. I was thinking about an SDK mismatch as my project and also react-native 0.62.2 specifies SDK version 28 as default and react-native-radar 29. Maybe that is reason why my icons disappear.
Code to reproduce
Here is my package.json:
Steps to reproduce
Like said I just installed it and the icons are gone. When removing it from the package.json and running yarn the app has got it icons back again.
OS version
Android 10
Other information
I specified the icons correctly in my AndroidManifest.xml like this and they are already working if not using react-native-radar: