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

Find the value of x. X 4 [?] X = Enter the number that belongs in the green box.
Respond with complete sentences by rewriting the question within your answer - Think about the types of geologic environments in which melting occurs. How might
Which advice would best help you protect your personal information? A. Respond to any email that looks like it originates from a legitimate company. B. Only giv
Is this relation a function? Explain.(-2, -1), (4, 2), (-8, -4), (6, 3) ​
From 2007 to 2010, the mink population stayed fairly consistent, but in 2010, the population dramatically decreased. Which of the following could describe what
true or false? in reading critically, the reader identifies the claims in the text only.​
Pls I do not know how to rotate without tracing paper
discribe how standard of meter,second, and kilogram are agreed internationally.​
Does the graph show a linear function?
Think about Compounds in Your Body Many functions in the body are controlled by special compounds. Which statements about these compounds do you think are true?