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 pressure that interest groups put on legislators is called: a. logrolling c. pigeonholing b. quid pro quo d. lobbying
HELP ME FOR NUMBER 1 THROUGH 11
Which equation is equivalent to 4s=t+2
In which of the following situations may you use the source title for an in-text citation?
solve D=RT for D, if T=5hrs and R=65mph
Which of these terms refers to a government controlling the economy in order to strengthen it?
Which of the following restrictions to individual rights could most reasonably protect the common good?
Humans cannot ferment ______ in their bodies. lactic acid alcohol both a and b none of the above
What forces keep balanced rock in a canyon in Idaho balanced on it'so tiny pedestal
the slope of the line below is 5. which of the following is the point-slope form of the lne?