Files
react-native-svg/elements/Shape.js
T
2017-02-03 19:43:25 +08:00

16 lines
393 B
JavaScript

import {Component} from 'react';
import SvgTouchableMixin from '../lib/SvgTouchableMixin';
import _ from 'lodash';
class Shape extends Component {
constructor() {
super(...arguments);
_.forEach(SvgTouchableMixin, (method, key) => {
this[key] = method.bind(this);
});
this.state = this.touchableGetInitialState();
}
}
export default Shape;