React-Native State Dynamic Color
问题 I want to set the tintColor of my png Image dynamic. Actuall i am trying to set the color at the state properties and change them with seperate functions with the setState . My code is something like this (Expect that everything works fine above and around the following code snippet): class dynamicImageColor extends Component{ constructor(props) { super(props); this.state = { myDynamicColor: '#ffffff' } } changeColor(bool){ if(bool === true) { this.setState({ myDynamicColor: '#932727' }) }if