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

The diameter of a child's bicycle wheel is 12 inches. Approximately how many revolutions of the wheel will it take to travel 1,200 meters? Use 3.14 for π and ro
the comparison of two quantities with different units is called a
Simplify the following expressions by combining like terms subtract (6x + 2) - (9x + 3)
Do you think Tunde Olaniran’s water would have been shut off if he lived in a wealthy neighborhood? Explain your answer.
In Zephaniah the chief pronouncement is that disaster is imminent.
Can anyone do this I can't understand
What ordered pairs are the solutions of the system of equations shown in the graph below?
For this writing assessment, you will write a five-paragraph literary analysis in which you address this prompt: Write an analysis of "Thank You, Ma'am" by Lang
1. Find the measure of the missing angle: A EN D 1320 Ch MESELE HERO 4 270 STREETR 10 SAN VIERES K MAKAL MESE THREE PORTE SEATTLEFFE PERTINES B
On which planet in our solar system does summer last 42 years? a. Uranus b. Saturnus c. Earth d. Mars