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

Use the equation y = 2x -5 to find y when x = 3z. Enter your answer without spaces.
Can someone help me with this please
Wich point, when added to the set would form a relation that is not a function. Please help.
HELP PLEASEEE Select the correct answer. Josiah wants to be a US senator. He is 29 years old and was born in Miami, Florida. After graduating from high school,
Define the meaning of the phrase entry requrement to higher education institutions and state four reasons why knowing the entry requirements is important
I need help solving this problem.
Which of the five themes of geography would a person most likely use to study the importation of Chinese goods into the United States? A. places and regions B.
pls complete the table with the correct answer ​
What is the possible number of solutions to a system of linear equations in three variables? Select the three correct answers. a) 4 b) 1 c) infinitely many d)
I'm pretty yeah Alam ko un​