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 was the name of Francisco Franco's political party?
Phillip is rolling two number cubes. how many different ways can he roll the number cubes and get a sum of 5?
A brownish fossil that can be found in rock and contains the remains of an organism is
What is the collection of bones tha run down ur back?
Which idea is the driving force of the free enterprise system?
24 points to whoever gets it right!!!
Are my answers correct
The base form of the verb is also known as the _____? A. Present Tense B. Future Tense C. Past Participle D. Past tense
HELP ME ASAP!!! PLZ PLZ
Greenhouse gases are A. Gases that release heat B. Gases that hold heat C. Gases that create carbon dioxide D.Gases that consume carbon dioxide