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 did Tutankhamun die?” Illustrates a (n) _________ mood.
factor 32x2+48x+18 in order to get about 69 pints if you get it correct (ASAP)
Please help me with this? Brainliest to best answer!
I need help with this can you plz help me plz help me badly I need your help plz help me ASAP
Accost but "on the contrary" in each sentence
An architect is making a plan for a new circular playground. If the playground has a diameter of 64 feet how much fencing needs to go up to keep the kids in the
PLZ HURRY IT'S URGENT!!!!! Solve. -r/4≤8 A. r ≤ –32 B. r ≥ –32 C. r ≤ –2 D. r ≥ –2
Why is biodiversity important to the biosphere
In Thomas Paine's "Liberty Tree," how does the author mostly emphasize the principal subject of the poem? A. By describing Liberty as a tree B. By capitalizing
PLEASE HELP REALLY URGENT!!