Open arunnambissan opened 4 years ago
I found a workaround as below:
eraseComponent={<View onTouchStart={() => this.setState({eraserActive: true})}>
<Text>Eraser</Text>
</View>}
strokeSelectedComponent={(color, index, changed) => {
if (changed) {
this.setState({eraserActive: false})
}
.
.
.
})
How can I know whether the eraser is active? I want to change the eraser component color when the eraser is active.