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

in 1663 which French monarch declared New France a royal colony
A best way to prevent hypotermio is
when you lift a book of the ground to your desk, what kind of work do you do, negative or positive? by lifting the book what do you change? does the book gain
125 percent of what number is 25
The armys sharp policies apply without regard to a persons rank, age, gender, and sexual orientation. a persons sexual orientation is a personal and private mat
Which document contains the dod cyber regulations for cui and cti??
The majority of mutations have negative effects on the organisms in which they occur. True False
What is the answer to 4-3n=43
Identify and explain one reason why the United States would outsource their manufacturing to a country such as China.
Select the indirect object pronoun that completes the sentence. A Susana y María ______ duelen los dientes. 1 Point A. os B. les C. te D. le