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

Erika paid a self-employment tax last year. She calculated the self-employment tax for different amounts of net earnings and recorded them in the table shown. S
1 2 /3 − 4 /5 = Can you please help me
What is 28% of 307 Enter your answer as a decimal in the box
What do you feel is the most important issue facing American schools today explain your answer
The flooding of the Nile was important for the ancient Egyptians because… A. It brought water for growing food.
¿_____Ud. de compras ayer? O fuimos O fueron O fuisteis O fue
The pathway to cvil war
Which of the following identifies two of the causes of the War of 1812? A. William Henry Harrison led American soldiers against the French; Canada wanted to be
Help me please!!!!!
What is surprising about the towns reaction the ransom of red chief?