Add touch events support for G elements

This commit is contained in:
Horcrux
2016-07-31 22:01:14 +08:00
parent 803d164b64
commit 6c7c2fdf3f
6 changed files with 27 additions and 22 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class Shape extends Component {
this.state = this.touchableGetInitialState();
}
extractProps = (props, options = {stroke: true, transform: true, fill: true, responder: true}) => {
extractProps = (props, options) => {
let extractedProps = extractProps(props, options);
if (extractedProps.touchable && !extractedProps.disabled) {
_.assign(extractedProps, {