Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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>
Comment

react native backgrunde img

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

PREVIOUS NEXT
Code Example
Javascript :: console.table javascript 
Javascript :: seleccionar value select2 js 
Javascript :: get current data and time in javascript 
Javascript :: javascipt get last element of array 
Javascript :: how to send emoji as ID discord.js 
Javascript :: js get part of array 
Javascript :: usedispatch 
Javascript :: rgb to hex js 
Javascript :: jquery $(...)..each() is not a function 
Javascript :: javascript reverse array 
Javascript :: size of call stack js 
Javascript :: document.write multiple lines 
Javascript :: change padding javascript 
Javascript :: how to return 5 records instead of 10 records in datatable in laravel 
Javascript :: useState settoggle 
Javascript :: how to make slide js in owl carousel auto 
Javascript :: javascript string pop 
Javascript :: jquery append 
Javascript :: generate random string javascript 
Javascript :: how to capitalize a letter based on an index in javascript 
Javascript :: copywithin javascript 
Javascript :: javascript remove event listener 
Javascript :: angular contains both .browserslistrc and browserslist 
Javascript :: express redirect to url 
Javascript :: multiple transform properties javascript 
Javascript :: javascript split string only on first instance of specified character 
Javascript :: passing data variable using ajax 
Javascript :: express bodyparser deprecated 
Javascript :: shadow in react native 
Javascript :: jquery checkbox 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =