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

Determine the slope of the line that passes through the given point v (-10.-4), W/5, 5)​
Which of the following coordinate pairs make the equation x - 9y = 12 true?
the main idea of this section of big cats is
How can the story of the Pardoner relate to present day? Use evidence from the text
Lucy rides her bicycles 240 feet. A wheel of her bicycle turns 40 times as the bicycle travels this distance. What is the diameter of the wheel?
the people do education .but why the people dont get any good job .?but they do the good education.why?////
Determine the slope and y-intercept for the line that passes through the points (5, 5) and (-5, 1) Show your work
if a carpet is advertised at $20 per square yard, what is the cost per square foot?
What is the correct answer now
PLEASE RESPOND ASAP I NEED THIS TODAY WILL GIVE BRAINLIEST FOR THE FIRST RIGHT ANSWER. In the following sentence, what does the word tumultuously most likely me