ImageBackground in style component in react native code example
Example: view background image in react native
<ImageBackground source={require('../design/postsbg1.png')} style={styles.image}>
...children tags
</ImageBackground>
<ImageBackground source={require('../design/postsbg1.png')} style={styles.image}>
...children tags
</ImageBackground>