react-sketch icon indicating copy to clipboard operation
react-sketch copied to clipboard

Change text color

Open mohsinht opened this issue 6 years ago • 1 comments

Right now the text color doesn't change when I change Line Color or Fill Color in the example app. Is there any possibility I can do so?

mohsinht avatar Jul 08 '19 09:07 mohsinht

yes, we can change the text color by using the below code.

addText = () => this._sketch.addText(this.state.text, {fill: '#dedede', fontStyle: "italic", editable: true});

saikumargummidi avatar Dec 09 '19 05:12 saikumargummidi