Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native add two view

<View style={{flex: 1}}>
    <View style={{height: 200, backgroundColor: 'grey'}}></View>
    <View style={{flexGrow: 1, backgroundColor: 'black', alignItems: 'center'}}>
      <Image
        source={require('./icon.png')} 
        style={{
          position: 'absolute',
          top: -40,
          height: 80,
          width: 80}} 
        />
    </View>
  </View>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #add #view
ADD COMMENT
Topic
Name
1+4 =