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

midpoint of line segment with endpoints (3.2,2.5) and (1.6,-4.5)
obustness of the mann, bradley, hughes reconstruction of northern hemisphere surface temperatures: examination of criticisms based on the nature and processing
ILL GIVE BRAINIEST Find a​ point-slope form for the line with slope 1 5 and passing through the point ​(−8​,−5)
Which of the following are of the Christian faith? (Select all correct answers) Quakers Catholics Pilgrims Puritans Protestants
revised 2017 scope of practice for the registered dietitian nutritionist. academy quality management. journal of the academy of nutrition and dietetics volume:
Which of the following statements is not true about the American with disabilities act
a client who has just had a triple-lumen catheter placed in his right subclavian vein complains of chest pain and shortness of breath. his blood pressure is dec
If you go into the park alone at night, watch _____________ pickpockets
Question 5 Which of these is required for natural selection to occur? Unequal reproductive success inheritance individual variation. all of the answers are c
Which polynomial expression is equal to m(m+2)(m2−2m+4)?