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

What is Cassius’ plan to win Brutus to the conspiracy?
Deon split 3/4 lb of candy among four people. What is the unit rate in pounds per person? Write your answer in simplest form.
What's the answer to this
An effect of the steamboat’s popularity was that... A) fewer people traveled by rail. B) steam locomotives became less popular. C) people began to build canals
which best describes why candidates and political use the internet
Which of the following disorders is by an individual who has the habit of eating to excess and then purging by vomiting?
Each week leslie jogs 20 minutes for every 10 minutes that she lifts weights. Is the number of minutes Leslie jogs each week proportional to the number of minut
what is the width of a rectangle with length 14 cm and area 161cm squared 2
what is the range of f(x)=e^x? A.All real numbers less than 0 B.All real numbers except 0 C.All real numbers D.All real numbers greater than 0
Canada has around one thousand lakest or f