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

Factor 40a–15. Write your answer as a product with a whole number greater than 1. Questions
Will spent $40 at the fair. It cost $20 to get in the fair and $0.50 per ticket to ride the rides. How many tickets did Will buy? A. 40 B. 20 C. 120 D. 30
What is the answerrrr to thissssssssssssssss.
I need help on this question anyone who can help me thank you very much
Please I need help like now if you show your work I'll mark brainiest. 1 = [tex]x/25[/tex]
2) Find x if IW = x -2 and IU = 2x - 6 H U A) 6.6 C) 7 B) 5 D) 4
What happened when Roosevelt went west to the Dakota Territory as a 2 po young man? the cowboys didn't think he could make it out west Roosevelt experienced tou
What is the x-value of the solution to this system of equations? Y=2/7x-1 2x + 7y = -49
In 1685, the French explorer Rene-Robert Cavalier. Sieur de La Salle, established a fort at Matagorda Bay in Texas. How did the Spanish react to the news of thi
Which amendment protects the powers and rights of State Governments?