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

Please help j divided 3 1/2 for j=9/10
Please solve and explain
ANSWER ASAP Which two expressions are equivalent? A: x(7+4) and 7(x) + 4(x) B: 7 - (5•x) and (7-5) • x C: 4(x-9) and 4(x) - 9 (x)
Issues of fairness, equality, and justice are important in the history and cultural values of the United States. What is one current issue that you are passiona
HELP ME PLEASE Select the answer with the correct punctuation A.She packed her bag to get on the ferry, notebook, pens, pencils, and lunchbox. B.She packed he
can someone please help me with one of my questions? i have tons of homework to do and I was wondering if someone could do one of them for me so I can get start
determine the solution type for each equation if one solution determine the value for x 10-7c=10+2(3-5c)
Why is yoga good for you? Use in your own words.
Write in standard form 3.82×10⁻³ (Ex: 300) Please take this seriously, ty :)
Which statement is objective? Newton’s rules explain how gravity affects objects. The history of black hole detection is very interesting. The scientists who