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

Megan went to the store and bought 4 notebooks and 9 pencils for a total of $8.25. Joanne went to the same store and bought 7 notebooks and 14 pencils for a tot
Gage's letter shows that he was aware of the A. potential for violence at Concord. B. weakness in his supply chain. C. support for the King by loyal local
Who gives Odysseus's men a special flower to eat that makes them forget their home
Find the y-intercept and x-intercept of the line. 5x-3y=10
The diameter of Circle A is _________. EF AG EG FG
Which type of figurative language does the sentence contain? idiom metaphor personification simile
Hey guys please Answer all this questions...!!​
Why are linked traits inconsistent with Mendel's laws?
Spouses are more likely than random paired people to share common attitudes, beliefs, and values. The _____ the similarity, the _____ they are.
number of electrons in 21Sc with L=1​