Closed shahankit closed 6 years ago
I didn't know about ImageBackground
, indeed this would be a good idea.
@shahankit Can you point me to the documentation of ImageBackground
?
I get a console warning whenever using <Image />
with children to use <ImageBackground />
instead. I found this in documentation for ImageBackground
: http://facebook.github.io/react-native/releases/0.48/docs/images.html#background-image-via-nesting
Thks a lot 👍🏻
Same issue. Please fix it, thanks.
@wcandillon I'm getting a depreciated message in react-native 0.49.2
.
Using <Image> with children is deprecated and will be an error in the near future.
Looks like their going to depreciate in the next release or two.
looks like you have landed a fix in master, If it is usable, would you be willing to cut a release?
@jayshah123 Thank you for pointing that out, will make a release now.
As of ReactNative 0.46 using, it's recommended to use
ImageBackground
component wheneverImage
has children. This is possible usingCustomImageCache
component as follow:Although if there is a directly available component name CachedImageBackground to import then it would be great.