Dive into the world of knowledge and get your queries resolved at IDNLearn.com. Discover reliable and timely information on any topic from our network of knowledgeable professionals.
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}]}/>