You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This package depends on [react-native-webview](https://github.com/react-native-webview/react-native-webview#readme) and it is particularly needed when you are using **_React Native CLI_**. To install `react-native-webview` follow the steps mentioned [here](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Getting-Started.md)
30
30
31
-
32
-
33
31
## Installation(for React Native V0.5x.x or Expo SDK < v33)
| minWidth |`number`| minimum width of a line. Defaults to 0.5 |
69
71
| maxWidth |`number`| maximum width of a line. Defaults to 2.5 |
72
+
| minDistance |`number`| Add the next point only if the previous one is farther than x pixels. Defaults to 5. 5 |
70
73
| nestedScrollEnabled |`boolean`| enable nested scrolling for use inside of a scrollview |
71
-
| showsVerticalScrollIndicator |`boolean`| Boolean value that determines whether a vertical scroll indicator is shown in the `WebView`, The default value is `true`. |
74
+
| showsVerticalScrollIndicator |`boolean`| Boolean value that determines whether a vertical scroll indicator is shown in the `WebView`, The default value is `true`. |
72
75
| onOK |`function`| callback function after saving non-empty signature |
73
76
| onEmpty |`function`| callback function after trying to save an empty signature |
74
77
| onClear |`function`| callback function after clearing the signature |
75
-
| onGetData | `function` | callback function when getData() is called
78
+
| onGetData |`function`| callback function when getData() is called |
76
79
| onBegin |`function`| callback function when a new stroke is started |
77
80
| onEnd |`function`| callback function when the stroke has ended |
78
81
| onLoadEnd |`function`| callback function when the webview canvas load ended |
@@ -81,23 +84,23 @@ import SignatureScreen from 'react-native-signature-canvas';
81
84
| onDraw |`function`| callback function when drawing is enabled |
82
85
| onErase |`function`| callback function when erasing is enabled |
83
86
| onChangePenColor |`function`| callback function after changing the pen color |
84
-
| onChangePenSize | `function` | callback function after changing the pen size
87
+
| onChangePenSize |`function`| callback function after changing the pen size |
85
88
| overlayHeight |`number`| height of the overlay image |
86
89
| overlayWidth |`number`| width of the overlay image |
87
-
| overlaySrc | `string` | overlay image source uri (url) _must be .png with a transparent background_
90
+
| overlaySrc |`string`| overlay image source uri (url) _must be .png with a transparent background_|
88
91
| penColor |`string`| default is "black", color of pen |
89
92
| rotated |`boolean`| rotate signature pad 90 degrees |
90
93
| style |`object`| style of wrapper view |
91
94
| trimWhitespace |`boolean`| trim image whitespace |
92
95
| webStyle |`string`| webview style for overwrite default style, all style: https://github.com/YanYuanFE/react-native-signature-canvas/blob/master/h5/css/signature-pad.css|
93
-
| androidLayerType |`none、software、hardware`| Sets the android webview layerType |
96
+
| androidLayerType |`none、software、hardware`| Sets the android webview layerType |
An overlay is a non-erasable image that can be used as a guideline similar to a colouring book. Make sure the image format is .png and that it has a transparent background. Also, don't forget to provide the width and height of the image.
0 commit comments