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

How many times would you need to apply the transitive property to show that 1=6
Abdul is choosing a 3 letter password from the letters A,B,C,D, and E. The password cannot have the same letter repeated in it. How many such passwords are poss
PLEASE HELP!!!!Which of the following options is an equivalent function to f(x)=3(2)3x
the ________ will be used to write the rough draft. A. Source cards and thesis B. Outline alone C. Brainstorming process D. Outline, thesis and not cards
A solution of phosphoric acid has a boiling point of 158 degrees Celsius. What is the boiling point of the solution in degrees Fahrenheit?
A nurse needs to perform a postural drainage of both lung apices in a 4-year old child. in what position should the nurse place the child?
_____ encourage employees to behave in a socially responsible manner.
Sonya wants to know how much her annual take-home pay will be after she pays FICA taxes totaling 7.65% on an annual salary of $36,590.
As a person receives more of a good, the _______________ from each additional unit of the good declines.
PLEASE HELP ME!!! NOT GOOD AT MATH.