Answers for "ovelay text on image in react native"

2

ovelay text on image in react native

<View style={styles.imageWrapper}>
     <ImageBackground style={styles.theImage} source={{uri : item.imageUrl}}>
          <Text>Hey</Text>
     </ImageBackground>
</View>

const styles = StyleSheet.create({
    imageWrapper: {
        height: 200,
        width: 200,
        overflow : "hidden"
    },
    theImage: {
        width: "100%",
        height: "100%",
        resizeMode: "cover",
    }
})
Posted by: Guest on November-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language