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}]}/>
1.6m questions
2.0m answers