Answers for "react native add two view"

0

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>
Posted by: Guest on December-09-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language