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 is 16/8 as a mixed number
what is the domain and range for y=lxl
how to find all real and imaginary zeros of f(x)=x^4+5x^2-5x^3-6+5x
How many Jews did Adolf Hitler killed
Solve by completing the square X squared -6x+8=0
a gardener has 27 pansies and 36 daisies he plants an equal number of each type of flower in each row what is the greatest possible number of pansies and daisie
what is 7/9 as a decimal terminating or repeating decimal
what is the domain and range for y=lxl
What problems brought on the tariff debates of 1827 and 1828? In what way did the South respond to northeastern demands for a higher tariff, and on what did the
whats 25/7 as a mixed number?