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

What two facts can you double to find 8x4?
Which trophic level does yellowfin tuna fill in a food chain
gulfside gifts has 48 boxes of postcards to sell. there are 24 postards in each box. if the shop sell 3 boxes of postcards, how many postcards does the shop hac
25 POINTS! Which traits are characteristic of both single-celled and multicellular organisms? Choose all answers that are correct. A. contain organs that h
How much more money do 10 T-shirts cost that 6 T-shirts? Explian how you found your answer.
Which of the following is an effective tip for participating in a group discussion? a. Spend as much time speaking as you can, since you do not know if you will
how to simplify 7m-2m
blank text has a darker apperance than normal texts
How did Herbert Hoover view the U.S. economy as he campaigned for President in 1928?
Q=p(r+s) Solve for p.