diff --git a/src/SketchCanvas.js b/src/SketchCanvas.js index 8f4fe48f..100d4b85 100644 --- a/src/SketchCanvas.js +++ b/src/SketchCanvas.js @@ -205,8 +205,8 @@ class SketchCanvas extends React.Component { onPanResponderRelease: (evt, gestureState) => { if (!this.props.touchEnabled) return if (this._path) { - this.props.onStrokeEnd({ path: this._path, size: this._size, drawer: this.props.user }) this._paths.push({ path: this._path, size: this._size, drawer: this.props.user }) + this.props.onStrokeEnd({ path: this._path, size: this._size, drawer: this.props.user }) } UIManager.dispatchViewManagerCommand(this._handle, UIManager.RNSketchCanvas.Commands.endPath, []) },