Answers for "ImageBackground in React Native"

8

react native background image

return (
  <ImageBackground source={...} style={{width: '100%', height: '100%'}}>
    <Text>Inside</Text>
  </ImageBackground>
);
Posted by: Guest on June-13-2020
5

react native backgrunde img

return (
  <ImageBackground source={...} style={{width: '100%', height: '100%'}}>
    <Text>Inside</Text>
  </ImageBackground>
);
Posted by: Guest on March-17-2020
0

ImageBackground in React Native

<ImageBackground source={require('background image path')} style={{width: '100%', height: '100%'}}>
   <View style={{position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, justifyContent: 'center', alignItems: 'center'}}>
     <Text>Centered text</Text>
   </View>
</ImageBackground>
Posted by: Guest on October-25-2021

Code answers related to "ImageBackground in React Native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language