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

What is it called when people cut down trees for timber and use the new land to grow crops?
Two days ago, Susan was 18. Yesterday was her birthday and she is now 19. Next year, she will be 21. When is her birthday?
Who became the first African American to represent Texas in the United States House of Representatives? A. Barbara Jordan B.Mickey Leland C. Eligio de la Garza
The radius of a circle is 18.5 m. Find the circumference to the nearest tenth
Find the area of the regular figure below: Will give brainliest to right answer :))
PLS HELP ASAP How many deans are there?
Three spheres, with masses indicated above, are initially far away from each other, and the gravitational potential energy of the three-sphere system is zero. T
Which equation represents a line that passes through (-2, 4) and has a slope of 2/5?
Ivy’s sister has trained for a marathon for over a year. Ivy comes out to support her and sees that there are tables set up with cups of water. She watches as t
Use the quadratic formula to solve for X. 2x- + 6x= -3 Round your answer to the nearest hundredth. If there is more than one solution, separate them with commas