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

What are the symbols of the two elements which are liquid
Who belonged to the French bourgeoisie?
plz answer 17 16 and 18 show work
Read the Article II. Article II Articles of Confederation Each state retains its sovereignty, freedom, and independence, and every Power, Jurisdiction and right
A motorboat traveling a distance of 225 miles in 5 hours while traveling with the current. Against the current, the same trip took 9 hours. Find the rate of the
How can the introduction of new technology change or understanding of historical events
how did the tombs of the pharaohs and royal family members differ from those of the average egyptian
about 47% of the 15152 samples researchers found were bacteria. what number of dna samples were not bacteria
Which city is located near 46n 108w ?
Course hero what’s the difference between a correlational study and an experimental study?