Add a full screen background image in React Native

Spread the love
var styles = StyleSheet.create({
  backgroundImage: {
    flex: 1,
    alignSelf: 'stretch',
    width: null,
    resizeMode: 'stretch', // or 'stretch',

And as for using it as Background image, just do the following.

<Image style={styles.backgroundImage}>
    <Text>All your stuff</Text>

Leave a Reply

Your email address will not be published. Required fields are marked *