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

What are the two conditions for equilibrium of a rigid body? how would this experiment demonstrate their validity?.
9 and 12 are relatively prime. True or false
Which heterotrophic bacteria(anaerobic) is harmless to human?
BIG IDLAS MATH #19 i Evaluate the expression. Write your answer in scientific notation. (6 x 10-3) + 0.23 – (5 x 10-2) =
What is the difference between j&j vaccine and pfizer
A galaxy such as the milky way galaxy is very small compared to
Which step constitutes the power stroke of muscle contraction?.
Which problem can occur in nations where people maintain their traditional ethnic cultures? Traditional beliefs discourage people from implementing Western tech
it’s something with the 30.60.90 thingy that i don’t know how to do someone help ☹️
1. How did western expansion and the mexican-american war affect the sectional tensions between the north and south?