Dive into the world of knowledge and get your queries resolved at IDNLearn.com. Our Q&A platform offers reliable and thorough answers to ensure you have the information you need to succeed in any situation.
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}]}/>