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

Fill in the blank with the correct conjugation of tener. Do not capitalize, as it will confuse the system. Activity by Ashley Humbles CC-BY-NC-SA-40 1. Nosotros
if 7/8 quintal of sugar costs ruppess 245, what is the cost of 0.8 quintal of sugar?
Which type of service offers a preconfigured testing environment for application developers to create new software applications? A - Software as a Service (SaaS
Please help meee ! Asap
A machine can make 4820 hats in one day. How many hats can the machine make in 7 days?
find angle 3,6,and 5 thankssss …………
Three consecutive integers are n, n+1, and n+2. Four times the sum of the least and greatest integers is 12 less than three times the least integer. What is th
44. What do you think was the most important achievement of each of the 4 early civilizations? • Egyptians= • Mesopotamia= • Indus Valley= Chinese PLEASE I NEED
Find the factor of the following polynomials pa help naman po need ko na po kasi. maraming salamat po!!! Merry Christmas in Advance!!
Which type of service offers a preconfigured testing environment for application developers to create new software applications? A - Software as a Service (SaaS