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

Mrs. watson will often make herself sick by eating bad food so she will have a reason to spend time with doctors and get their attention. to which group of diso
How did the new massachusetts charter of 1691 change that colony's government?
E difference between status and role is that ________. a. status determines social position, while role is not significant b. status is voluntary, but role is o
PLEASE HELP ASAP!!! CORRECT ANSWER ONLY PLEASE!!! Fill in the blank with the correct PRESENT PROGRESSIVE form of the verb. Be sure to only write the conjugated
Does any one understand these questions explain if you can.
you are trying to convince your mother to let you get a tattoo
Number 15 plz and thank you
find the value of x. 12.5, -10, -7.5, x. the mean is 11.5
Which level of organization is seen in both arachnoidiscus ehrenbergii and the stomach?
Bats and birds are unrelated animals, yet they both evolved wings. by acquiring similar traits (i.e., wings) as they adapted to similar environments, these spec