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

benefits of running in the morning
how many elements in the periodic table
suppose a sorority sells 500 raffle tickets to raise money for a local charity. you purchase 17 of the tickets. if the winning ticket is chosen at random, what
when does spring start 2016
What is the area of each face of cube A? If cube A is 1/2 inch on each face
map of european countries
what are the stations of the cross
how many hours of sleep do i need
What's an example of multiple alleles?
What is the best way to treat fungal infections like athletes foot