react-native-rectangle-doc-scanner 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,6 +53,8 @@ const Overlay = ({ quad, color = '#e7a649' }) => {
53
53
  skPath.close();
54
54
  return skPath;
55
55
  }, [quad]);
56
- return (react_1.default.createElement(react_native_skia_1.Canvas, { style: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 } }, path && react_1.default.createElement(react_native_skia_1.Path, { path: path, color: color, style: "stroke", strokeWidth: 4 })));
56
+ return (react_1.default.createElement(react_native_skia_1.Canvas, { style: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, zIndex: 1000 } }, path && (react_1.default.createElement(react_1.default.Fragment, null,
57
+ react_1.default.createElement(react_native_skia_1.Path, { path: path, color: color, style: "stroke", strokeWidth: 8 }),
58
+ react_1.default.createElement(react_native_skia_1.Path, { path: path, color: "rgba(231, 166, 73, 0.2)", style: "fill" })))));
57
59
  };
58
60
  exports.Overlay = Overlay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {
@@ -28,8 +28,13 @@ export const Overlay: React.FC<OverlayProps> = ({ quad, color = '#e7a649' }) =>
28
28
  }, [quad]);
29
29
 
30
30
  return (
31
- <Canvas style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
32
- {path && <Path path={path} color={color} style="stroke" strokeWidth={4} />}
31
+ <Canvas style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, zIndex: 1000 }}>
32
+ {path && (
33
+ <>
34
+ <Path path={path} color={color} style="stroke" strokeWidth={8} />
35
+ <Path path={path} color="rgba(231, 166, 73, 0.2)" style="fill" />
36
+ </>
37
+ )}
33
38
  </Canvas>
34
39
  );
35
40
  };