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

If I combin a triangle and a trapezoid to make a parallelogram and the area of the triangle is 12in.2 and the area of the trapezoid is 24in.2 what is the area o
Use the correct form or "dar" to complete the sentence. Ellos nos ____ la dirección de la fiesta.
Paloma opened a savings account with a deposit of $750. She earns 2% simple interest per year on the account. What will the total amount of money, in dollars, i
What are bloc politics?
PLSSSS ANSWER I WILL GIVE BRAINLIEST Jorge is testing the effect of lead on child development. Based on his observations, he finds that the longer the children
What do all arthropods have? 1: jointed legs 2: 8 legs 3: stiff legs 4: 6 legs
Why are thick, specialized liners necessary in landfills?
Why does Paine most likely refer to Joan of Arc? to enlist the aid of the French government in the fight against Britain to show that the Americans have God on
Please help me solve this
Thank you for your help! Pls no links.