Answer the question
In order to leave comments, you need to log in
How to add one property to styles object?
const styles = {
inputInit: {
display: 'flex',
justifyContent: 'center',
flexDirection: 'row',
alignItems: 'center',
height: 60,
padding: 20,
border: '1px solid red',
cursor: 'pointer',
},
};
<div style={[{backgroundColor: 'green'}, styles.inputInit]}>
{this.value}
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question