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

which channel is the most popular one for the evening news A. WANR B. WWCN C. WCLM D. WKOD
6.) Which pronoun best completes the sentence? No other girl in the choir can sing as well as __________ . A. they B. her C. me D. she 7.) Which pronoun be
How do you say "Some brown spiders"?
Which pronoun correctly completes the elliptical clause? You folded fewer towels than __________. A. him B. he
PLEASE CHECK MY ANSWERS (PART 1)
which of the following did not trigger Haiti's fight for independence
find the slope of the line described by x - 3y =-6.
THE FULL MOON TURNED ORANGE AND THEN GOT REALLY DARK WHAT COULD HAVE MADE IT TURN DARK LIKE THAT
HELP HELP HELP HELP PLEASE (sorry ) can u complete this tiny is to .................. as broad is to ........................ the words to fill this in are tiny
What is .5v^1/3 Can u please help? Ian super lost!!!!!!