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

Doing exercise can change the body and the way it functions. a. True b. False
which of the following has been a negative effect of industrialization in china? increased literacy rates sharp reduction in agricultural land Decreased infant
The largest source of household income in the U.S. is obtained from A. stock dividends B. wages and salaries C. interest earnings D. rental income
Find the average of the following salaries: $52,500.00, $53,500.00 $55,500.00, $56,500.00
The process to convert seawater into freshwater is known as a. salination. b. desertification. c. desalination. d. deforestation.
What is 9x minus 9x minus 8 plus 6 simplified
What led to the beginning of the Renaissance? the rediscovery of ancient national epics such as Beowulf, which led to the rise of European nationalism the redis
The nitrogen utilized by most plants is derived from A. decayed organic matter. B. the atmosphere. C. soil. D. nitrogen gas.
when salmon are born, where do they head for?
14% of what number is 7