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

Find the solution sets of given inequalityAnswer fast pls​
ASAP!!:/\ (Photo) 1. Choose the correct form 2. Write a, the or X(no article) to complete the sentences Thank YOU
In at least 150 words, discuss the contrasts that exist in “Aunt Imogen."
Using correct significant figures, calculate the length of one side of a cube made of gold, if the mass of the cube is 4.05 g and the density of gold is 19.32 g
state the functions for the reproductive of males​
The Science Club went on a two-day field trip. The first day the members paid $60 for transportation plus $11 per ticket to the planetarium. The second day the
The principle of self-reference is based on the idea that people won't deviate from the overall mission of their organization if they have been imprinted with i
What are examples of environmental factors in mental health?.
Why were trenches built on the Western Front?​
Vincent drove 75 miles in 90 minutes. How far could he drive at that rate in 1 hour?