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

13C and 14C are isotopes of 12C, which has 6 electrons, 6 protons, and 6 neutrons. What is the arrangement of subatomic particles in 14C? 6 electrons, 7 protons
YOU'LL GET ALL POINTS POSSIBLE IF YOU HELP ME!!!!!! 1. In addition to possibly harmful chemicals in the environment, mining is considered? A. The most dangerou
THe Length of A Rectangle is 3 times the width. The Perimeter is 44cm. What are the dimensions of the Rectangle ? I Need Help. i'Ve Been Trying For Hours, And
Write an expression that converts 50 liters per minute into milliliters per second
what are some facts about covalent bonding? I need some information for my chemistry poster please, thank you.
What is the product of 8 and 54
2 (-20)+3 [5/4 (-20)]+5 [2/5 (50]+4 (50)
can you please simplify: sqrt 75x^6
Russians call their spacemen ______. Astronauts Cosmonauts Communauts Aeronuts
If you were one of the new immigrants who arrived in America in the 1880s, it's most likely that you would have been A. Irish and Protestant. B. German and Luth