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

how to divide 25.0 divided by 29.4
The Good Friday Agreement was to improve relationships in the country of A. China. B. Ireland. C. Korea. D. Israel.
Which protein serves as a chemical messenger? hemoglobin actin myosin insulin
The weight of an object on the moon is 1/6 it's weight on Earth. Write 1/6 as a decimal.
The brain is divided into the _______. A. Cerebrum B. Cerebellum C. Brain stem D. All of the above
the unit cm3 is used to express .?
How many 2/3 -ounce packages of peanuts can be made with 8 ounces of peanuts? Explain how you found your answer.
In the Declaration of Independence, Thomas Jefferson listed a series of grievances that colonists had against British rule. What purpose did this serve? The lis
True or false The Federal Reserve Bank is responsible for minting new coins.
I was in the National Forest with my camera. The day was crisp, and the leaves were turning gold and red. When I spotted the white-tailed buck, I froze. He wasn