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 many liters of a 0.80 M solution can be made with 2.0 mol KNO3?
What is the molar concentration of a solution that contains 5.0 mol HCl in a total volume of 10.0 L?
types of computer analogue, digital, hybrid computer​
How to draw tree diagram for this sentence “ finding a needle in a haystack is easier than what we’re trying to do “
How do models help scientists predict the polarity of molecules? This is from the Molecular Structure Lab Report: Determining Polarity
two conducting spheres ​
What is the range of f(x) = 3x + 9?
1. Solve the given linear equations for 'x': i ) 3(2x - 3) = 4(2x + 4) ii )2(x + 2) + 5(x + 5) = 4(x-8) + 2(x - 2) 2. Solve : 3x /4 - 7 /4 = 5x + 12 = 3. Show t
What else would need to be congruent to show that ABC = XYZ by ASA
Need help! The answer is D, can anyone explain in detail how?