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 would you command someone not to speak (hablar), using the tú command?
can you guys help me with both
The nations of Eastern Europe did NOT apply for Marshall Plan aid because \?
The after school Tiger Club meeting
Why did minority groups receive only limited benefits from progressivism?
What is Amsterdam? the capital of the Netherlands the capital of Bosnia the largest 30 city the name of a concentration camp
what is the future tense format sentences?
1 half ( 7 x 1 + 8 ) + 11
Facts can be proven or disproven by
Which of these choices is a geographic resource that contains many maps within one book?