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

do oranges have vitamin c in them or E?
African Americans died in the American revolution
why do kids get bullied
A box has a weight of 120 lbs and the bottom of the box is 12 in2 . What is the pressure the box exerts on the floor?
The soccer team voted on what they wanted to eat. There are 20 members on the team. Six members voted for pizza, 10 voted for chicken, and the rest voted for ho
Choose an organism that you are familiar with, and explain how the three parts of the cell theory relate to the organism
80 kg decreased by 63%
7.what is the best English translation for provincia 8.what is the best English translation for pecunia 9.what is the best English translation for reginarum 10
What is the slope of the line on the graph?
38 students need 88ml of acid how many 1l bottles are needed