0
 <View
        style={{
          borderRadius: 130 / 2,
          borderColor: '#000',
          backgroundColor: '#f89',
          height: 130,
          width: 130,
        }}>
        <Image
          source={{uri: 'https://i.imgur.com/G34Qbpv.jpg'}}
          style={{
            height: 130,
            width: 130,
            borderRadius: 130 / 2,
            zIndex: 0,
          }}
        />
        <View
          style={{
            justifyContent: 'center',
            alignItems: 'center',
            top: 90,
            backgroundColor: '#0f0',
            zIndex: 1,
          }}>
          <Icon
              name="camera" 
              size={30} />
        </View>
      </View>

I want to show Camera Icon on this Image:

like snapshot image

I want to show camera Icon on pics for Uploading a new image like this Image:enter image description here, how can I do this show camera for uploading another pic.

Najam Us Saqib
  • 3,190
  • 1
  • 24
  • 43
Majid Aziz
  • 64
  • 10

1 Answers1

0

Try this You forgot specifying the position

 <View
          style={{
            justifyContent: 'center',
            alignItems: 'center',
            top: 90,
            right : 0,
            position : 'absolute',
            backgroundColor: '#0f0',
            zIndex: 1,
          }}>
          <Icon
              name="camera"
              enter code heresize={30} />
        </View>
Rishav Kumar
  • 4,979
  • 1
  • 17
  • 32