@keyvaluesystems/react-native-scribble
Advanced tools
@@ -31,3 +31,3 @@ "use strict"; | ||
setPaths(prev => { | ||
return [[locationX, locationY], ...prev]; | ||
return [[locationX, locationY, locationX + 1, locationY + 1], ...prev]; | ||
}); | ||
@@ -34,0 +34,0 @@ }, []); |
@@ -24,3 +24,3 @@ import { useCallback, useRef, useState } from 'react'; | ||
setPaths(prev => { | ||
return [[locationX, locationY], ...prev]; | ||
return [[locationX, locationY, locationX + 1, locationY + 1], ...prev]; | ||
}); | ||
@@ -27,0 +27,0 @@ }, []); |
{ | ||
"name": "@keyvaluesystems/react-native-scribble", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "React native package to capture user scribbling on screen and convert it to an svg image", | ||
@@ -5,0 +5,0 @@ "main": "lib/commonjs/index", |
@@ -21,3 +21,3 @@ import { useCallback, useRef, useState } from 'react'; | ||
setPaths((prev) => { | ||
return [[locationX, locationY], ...prev]; | ||
return [[locationX, locationY, locationX + 1, locationY + 1], ...prev]; | ||
}); | ||
@@ -24,0 +24,0 @@ }, []); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40229
0.43%