backgroundImage in react native code example

Example 1: react native background image

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

Example 2: react native backgrunde img

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

Example 3: add background image react native

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