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",
}
})
Also in JavaScript:
- js conditional key
- v-for vue
- timezone in react js
- javascript get last element in an array
- how to get user ip address in javascript
- Javascript object to JSON string
- content of page fully loaded javascript
- jquery if attribute
- how to do a double bar chart with react-chartjs
- electron remove default menu
- js iterate object
- canvas nodejs
- string split javascript newline
- if else in javascript
- get data from api in javascript
- javascript toFixed
- change linear bagckgorund by javascript
- remove curly brackets from stringify javascript
- how to make a calculator websiteJS
- play audio in react
- how to run cypress
- javascript negative infinity
- multiple image upload with preview and delete react js
- get mouse position javascript