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

Select all the expressions that are equivalent to -6(3x - 7). -18x - 7, 4 - 10(3x - 7), 4(3x + 5) - 2(15x - 11), 6(3x + 7), 2x - 7 - 5(4x - 7), and -2(9x - 2
Endemic species are ecologically important for a number of reasons. First, since endemic species have a generally restricted distribution, threats to endemics c
All parts of a newscast are recorded live. O True O False
Marcos had 20 minutes to do a three-problem quiz. He spent 11 minutes on question A and 5 minutes on question B. How much time did he have left for question C?
AYUDAAAAAAAAAAA por favorrrr
Which statement best explains why water is essential for all living things? O Water makes up 65% of human beings. O Water is an essential component of blood. o
Which was the first state to secede from the United States? A. Georgia B. South Carolina C. Alabama D. Texas
PLEASEEEEE HELPPP MEEE PLZZZZZZZZ!!!!!!!
Choose the equation of the line that has a slope of zero and passes through the point (6, -3).
An automated teller machine (ATM) requires a four-digit pin number, where each digit is 0 - 9. How many possible pin numbers are there if repetition of digits i