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

Solve the following equation. Then place the correct number in the box provided. 4(3 - 2x) = 15
Express the following relationship as a rate. Washing 24 cars in 4 hours A.) 4 cars per minute B.) 8 cars per hour C.) 6 cars per minute D.) 6 cars per hour
Martin orders a pasta dish that is priced at $11.99. He also orders a drink. The total cost for the pasta and drink is $14.48. Which of the following equations
Identify the cartoon type. Jack created a cartoon of Tim. In which he highlighted Tim's long nose and lanky frame. Jack has made a [_______] cartoon
Coco and her mother bake cookies to welcome the new neighbor. What does this detail show about their feelings towards the neighbors
HELP ASAP ALGEBRA 2 please!!
what is the volume of the cylinder below?
Which best describes how "The Convict and the Bishop" resolves its main conflicts? A. The bishop's actions and compassion give Valjean what he needs to overcome
HELP!!Find the eighth term of the sequence given by the rule tn = -3n + 10 a) 14 b) -14 c) -34 d) 34
Read the following quote from President Lincoln's second inaugural address delivered on March 4, 1865.With malice toward none; with charity for all; with firmne