fix radial gradient memory leak

This commit is contained in:
Horcrux
2016-07-21 18:45:30 +08:00
parent 5ee5c2239a
commit 16a1f89bf6
2 changed files with 1 additions and 82 deletions

View File

@@ -118,29 +118,12 @@ class TextFill extends Component{
class TextPath extends Component{
static title = 'Draw text along path';
constructor(...args) {
super(...args);
this.state = {
key: 0
};
}
componentDidMount() {
let self = this;
//setInterval(function () {
// self.setState({
// key: self.state.key + 1
// });
//}, 50);
}
render() {
return <Svg
height="60"
width="200"
>
<Text
key={this.state.key}
fill="red"
path={`
M 10 20