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 kind of plate movement is shown in this figure
how did american foreign policy choices affect its relationships with old world power?
A 0.25 kg baseball is in contact with a bat for 0.0075 s and exerts a force of 18,500 N. What impulse is delivered to the ball? 33 kg • 140 kg • 4600 kg • 7
What is Not a factor of climate change?
Derive the equation of the parabola with a focus of (-5,-5) and a directrix of y=7.
HELP! Will mark Brainiest
When does a soft page break occur in a document
What is the Y and X intercept of 3x-y=3
Can Someone please help me solve tus 8x + 7 > -41
Mrs. bond teaches kindergarten and wants to include activities that support and enhance the language development of her students. what advice do you give her?