react native view background transparency
backgroundColor: 'rgba(52, 52, 52, 0.8)'
react native view background transparency
backgroundColor: 'rgba(52, 52, 52, 0.8)'
react background image opacity
// Basic idea is to create a outer and inner div.
// Header(outer div) will hold an image, while content(inner)
//will have a opacity
const styles = {
header: {
backgroundImage: `url(${background})`,
height: '100vh',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover'
},
content: {
height: '100%',
width: '100%',
backgroundColor: 'rgba(0, 0, 0, 0.5)',
}
}
<div style={styles.header}>
<div style={styles.content}>
Portfolio
</div>
</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us