ImageBackground code example

Example 1: css background image

background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;

Example 2: react native background image

return (
  <ImageBackground source={...} style={{width: '100%', height: '100%'}}>
    <Text>Inside</Text>
  </ImageBackground>
);

Example 3: remove background from image

Use this one its best
linK: https://www.remove.bg/

Example 4: add background image react native

return (
  <ImageBackground source={...} style={{width: '100%', height: '100%'}}>
    ......All Children tags
  </ImageBackground>
);

Example 5: background css image

background-image: url('./image.jpg');

Example 6: css background image

body {
 background-image: url("paper.gif");

}

Tags:

Css Example