If I use it as a wrapper in Android I get the error android.widget.imageview cannot be cast to android.view.viewgroup
Opened this issue · 5 comments
I'm using an Image as a wrapper so I can place another image and text over it.
I changed it to WebView and I was testing on iOS with no problem but in Android I get the error:
android.widget.imageview cannot be cast to android.view.viewgroup
Thank you! Yes, I will try to fix it before next version. This or next week.
Just a note that I also ran into this same issue when trying to nest a <View>
inside of a <WebImage>
component. I have the following dependencies:
"react": "~15.4.0",
"react-native": "0.41.2",
"react-native-web-image": "^0.0.4",
Yes, still not fixed. But workaround should be simple.
Original Image
component from RN also has this issue, they wrap it in View
. For reference:
https://github.com/facebook/react-native/blob/v0.44.0-rc.0/Libraries/Image/Image.android.js#L318-L339
@vovkasm @jordanmkoncz @nbastoWM any progress in this . I an not able to use this package in android .in IOS it works fine can you guys suggest me the workaround if it is not fixable .
Still on my TODO... currently I have very slow progress with this module, but hope to make new version before mid august.
But I still wonder, why not simple embed this component in View
(RN itself doing the same, see my previous comment)?