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

2x ^ 2 - 6x + 3?? Please help
What is the following an example of? Puritans had certain beliefs about women in society shaping colonial attitudes toward female writers.
need help i don't understand
Multiply (x+9) (x+√6) (x-√6) SHOW WORK
0.8 - 4x = -0.4y6x + 4.0y = 4.2Which of the following shows the system with like terms aligned? a.) -4x - 0.4y = -0.8 6x + 0.4y = 4.2 b.) -4x + 0.4y = 0.8 6x +
find the distance between E(-3,4) and B(-1,6)​
A tourist who wants to visit both a forest and the state capital would most likely go to which region of North Carolina? A. the Piedmont region B. the mountains
Which was the major reason people migrated to the western United States during the nineteenth century? de facto segregation economic opportunity industrial revo
why having a parabola with it's point calibrated is important?
The brain is far more malleable than we think and by taking actions (using strategies,practicing, asking good questions,.) we can increase our neural growth. Th