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

why did small states in particular prefer the New Jersey Plan? A.) it gave congress veto power over state law B.) it maintained a loose confederation C.) it rep
The only guaranteed way to prevent getting pregnant is by practicing abstinence
The value of x + x(xx) when x = 2 is: (a) 10, (b) 16, (c) 18, (d) 36, (e) 64
A scuba diver at a depth of -12ft(12 ft below sea level),dives down to a coral reef that is 3.5 times the divers original depth.what is the divers new depth
Identify why the following communication lacks competence. Robert was with his grandparents at the symphony. The ushers had closed the doors and audience membe
How did “the Magna Carta” lead to the English bill of rights?
Please do 15, 16 and 17! Please show your work in detail! Thank you!
What were the Enforcement Acts? Acts proposed by Grant but opposed by Congress to enforce the provisions of the Thirteenth Amendment Acts recommended by Grant
What is the mass of 22.4 L of H2O at STP? A. 18.02/mol B. 1.24 g/mol C. 24 g/mol D. 100 g/mol
Please help I will reward brainly