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

Water is considered a _______ resource. Oil, coal, and natural gas are considered _______ resources. _______ energy is able to be replaced within the ecosystem
Simplify the given expression. (–3x2 – 9x + 17) – (15x2 + 20x – 4)
Hook's law holds good up to. A elastic limit. B. plastic limit. C.yield point. D.Breaking point​
¿Dónde estaciones el coche? A. Salón b. estacionamiento C afeteria
explain what a directed line segment is and describe how you would find the coordinates of Point P along the directed line segment a b that partitions so that t
A line contains the points (-3, 4) and (7, -1). Calculate the equation of the line in the form y = mx + b Explain each step.
Find the distance between the pair of parallel lines. y = 2x + 4 y = 2x – 4 A) 4.01 B) 3.84 C) 3.58 D) 3.65
I DON’T GET THIS ONLY NEED NUMBER 6 PLEASEEE!!!!!
plz help me with all the stepsprove that sin^6(x)+cos^6 (x) = 1- 3/4 sin^2(2x)i really need help...​
Question 9.......................