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

The IMF and World Bank have been criticized as undemocratic. Why?
Identify the oblique asymptote of f(x) = quantity x squared minus 4 x plus 8 over quantity x plus 2. y = 0 y = x - 2 y = x - 6 No oblique asymptote
What is the term for words such as after, before, following, and then in the chronological writing process? A. signal words B. indefinite pronouns C. conjunct
how many feet does 5 yards equal
Two 4.0kg masses are 1.0m apart on a frictionless table. Each has 1.0μC of charge. Part A What is the magnitude of the electric force on one of the masses? What
What is a problem solving by following steps to draw a conclusion?
how many times is 5 bigger than 0.5?
What groups were excluded from this widening of political opportunity? Why?
Your home insurance policy has a $500 deductible. If a small fire causes $1200 damage to your home, what amount of the claim would the insurance company pay? A.
Explain why an addition problem that has a 4-digit addends could have a 5 digit sum.