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

at the market opening, a customer purchases 200 shares of an S&P 500 inverse etf (-1x) at $50 per share. At the end of that day, the s&P 500 index decli
Isla, Bob and Marie are playing a game involving counters. The total number of counters stays the same throughout the game. At the start of the game, the ratio
The value of 3 in 6,300 is _____ times the value of 3 in 530.
Please, i need help for part b, my hw is due tomorrow, please help, any help will be appreciated, The graph shows the speed of a vehicle during the final 50 s
Plot A(2,3) and B(2,5). What is the midpoint of points A and B?
Joe and Ann buy some fruit from the same shop. Joe buys 4 apples and 3 bananas for £2.50 Ann buys 3 apples and 4 bananas for £2.40 Work out the cost of (i) one
anyyyy girrllll online hereeeere m soo bored​
Identify the domain and range x -5 -2 1 5 7 y 10 11 4 10 15
Amy thinks of three numbers, which she calls a, b and c. The ratio a: cis 4: 3. The ratio b: cis 7:5. The median of a, b and c is 80. Work out the values of a,
For each function f, find f^-1 and f^-1(5). f={(-1,5), (0,0), (2,6)}