liltrell2568 liltrell2568
  • 02-12-2021
  • Computers and Technology
contestada

How to use a state value in stylesheet in react native.

Respuesta :

bushiaslam32008 bushiaslam32008
  • 05-12-2021

Answer:

Change this code:

return <View style={[styles.container, backgroundColor: this.state.bg]}/>

for this code:

return <View style={[styles.container, {backgroundColor: this.state.bg}]}/>

Answer Link

Otras preguntas

Give five reasons why peer pressure may lead to unsafe sexual behaviour.
what is the synonym for sparkling
The difference between a number and 12 is 20
a pyramid has cross-sectional, taken parallel to its base that are?
which purpose of government do armed forces fulfill?
Samantha is looking for a sport to do when she gets to school next year but she can't decide which one we give her the most benefit she's in fairly good physica
what is 4 times more than 4
evaluate the expression. 7⋅4 6−12÷4
Jerome tries to find the value of expression 3 - 6+5 by first applying the commutative property. he writes the expression as 3 -5+6. explain what is wrong with
which planet is about 1/10 of the distance Uranus is from the sun?