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

Sketch the function for the interval. State the periodicity of the model
How does the velocity of a falling object change with time? How would you describe the mathematical relationship between velocity and time of a falling object?
find the supplement of the angle 19 degrees
How can i solve this?
a woman invest a specific amount of money which earns compounded interest at a particular rate. this situation is represented by the equation : A=1000(1.023) ^(
A manufacturer makes bags of popcorn and bags of potato chips. The average weight of a bag of popcorn is supposed to be 3.05 ounces with an allowable deviation
What is the area of a circle with a radius of 4.6Area:
Drag the tiles to the correct boxes to complete the pairs. Not all tiles will be used. Match each series with the equivalent series written in sima notation.
What part of the reproductive system is highlighted in the picture attached? i don’t understand
1. If ∠2 measures 120°, what is the measure of ∠1? Explain how you found the measure of ∠1.2. Think of the top and middle shelves as two lines cut by a transver