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

Subtract. –21 – (–13) a. –34 b. –8 c. 8 d. 34
maggie has a ribbon 27 feet long. what is the length of the ribbon in yards? equation : answer :
write 3.141 in expanded notation
A video last 6.44 minutes. About how long does the videonlast, round to the nearest minute?
rename the number 120,000 ten thousands
Round to the place of the first digit 140,250
What is the best definition of the term interest rate? a. the rate of return on a business risk b. the price for borrowing or saving money c. the cost of impr
How do you say-her favourite colour is pink- in Spanish.???
the distance to the nearest gas station is 2 4/5 kilometers. what is this distance written as a decimal?
2500000000000 in scientific notation