React Native Tło obraz
return (
<ImageBackground source={...} style={{width: '100%', height: '100%'}}>
<Text>Inside</Text>
</ImageBackground>
);
Annoying Albatross
return (
<ImageBackground source={...} style={{width: '100%', height: '100%'}}>
<Text>Inside</Text>
</ImageBackground>
);
<ImageBackground source={require('../design/postsbg1.png')} style={styles.image}>
...children tags
</ImageBackground>
return (
<ImageBackground source={...} style={{width: '100%', height: '100%'}}>
<Text>Inside</Text>
</ImageBackground>
);
return (
<ImageBackground source={...} style={{width: '100%', height: '100%'}}>
......All Children tags
</ImageBackground>
);
<Image source={require('image!egg')} style={styles.backgroundImage} />
React Native Image Background