ReactNative ImageBackground
See original GitHub issueAs of ReactNative 0.46 using, it’s recommended to use ImageBackground
component whenever Image
has children. This is possible using CustomImageCache
component as follow:
<CustomCachedImage
component={ImageBackground}
source={{ uri: 'http://loremflickr.com/640/480/dog' }}
/>
Although if there is a directly available component name CachedImageBackground to import then it would be great.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:8 (4 by maintainers)
Top Results From Across the Web
ImageBackground - React Native
A common feature request from developers familiar with the web is background-image . To handle this use case, you can use the <ImageBackground> ......
Read more >How to use ImageBackground to set background image for ...
To add background Image, React Native is based on component, the ImageBackground Component requires two props style={{}} and ...
Read more >Set a component's background image - Expo Documentation
The ImageBackground component lets you display an image as the background of another component in Expo and React Native apps. For example, you...
Read more >ImageBackground // React Native for Web - GitHub Pages
ImageBackground. An image component with support for child content. import { ImageBackground } from 'react-native';
Read more >How to set Background Image in react-native ? - GeeksforGeeks
In BackgroundImage.js, we will import ImageBackground component from react-native. It takes following props: source: Source of Image to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thks a lot 👍🏻
I get a console warning whenever using
<Image />
with children to use<ImageBackground />
instead. I found this in documentation forImageBackground
: http://facebook.github.io/react-native/releases/0.48/docs/images.html#background-image-via-nesting