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

Question4..........................
Find the volume of the pyramid. Round to the nearest tenth if necessary. Question 3 options: 15,120 ft3 5,040 ft3 15,498 ft3 5,166 ft3
The constitutional issue at the heart of United States v. Nixon is best described as
Which values for h and k are used to write the function f(x) = x^2 + 12x + 6 in vertex form? h=6, k=36 h=-6, k=-36 h=6, k=30 h=-6, k=-30
what three issues did europe face after the war
Explain/show why the table below represents a proportional relationship
Can someone help me ?
A ball is thrown from a height of 205 feet with an initial downward velocity of 11 ft/s. The ball's height h (in feet) after t seconds is given by the following
Explain why the two figures below are similar. Use complete sentences and provide evidence to support your explanation.
Q varies inversely as the square of p, and Q = 36 when p = 7. Find Q when p = 6. A. Q = 176 B. Q = 6 C. Q = 49 D. Q = 42