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

a couple wants to install a square mirror that has an area of 500 square inches.to the nearest tenth of an inch,what length of wood trim is needed to go aroun
If every positive number has two square roots and you can find the length of the side of a square window by finding a square root of the area, why is there only
8. A pattern of being late for work or for appointments is usuallyA. a habit learned early, which is nearly impossible to break.B. directly related to one's per
8. A pattern of being late for work or for appointments is usuallyA. a habit learned early, which is nearly impossible to break.B. directly related to one's per
How do three planes intersect at one point?
simplify expression.-3(k-4)-4(2k-8)
16x^2-24x+7=0 equation and/or inequalities
three consecutive even integers have a sum of 168. what's the value of the largest integer?
what is this number in word form 3,152,308,726
What is two thirds of 120?