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
Copy file name to clipboardExpand all lines: QRCode.js
+10-8
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
*
4
4
* React Native QRCode generation component. Can generate standard QRCode image or base64 image data url text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.
@@ -1533,8 +1533,10 @@ function QRCode(canvas, vOption) {
1533
1533
version: 0,// The symbol versions of QR Code range from Version 1 to Version 40. default 0 means automatically choose the closest version based on the text length.
1534
1534
1535
1535
// ==== binary(hex) data mode
1536
-
binary: false// Whether it is binary mode, default is text mode.
1536
+
binary: false,// Whether it is binary mode, default is text mode.
1537
1537
1538
+
// UTF-8 without BOM
1539
+
utf8WithoutBOM: true
1538
1540
1539
1541
};
1540
1542
if(typeofvOption==='string'){
@@ -1631,7 +1633,7 @@ function QRCode(canvas, vOption) {
Copy file name to clipboardExpand all lines: package.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "easyqrcode-react-native",
3
-
"version": "4.0.3",
3
+
"version": "4.0.4",
4
4
"description": "React Native QRCode generation component. Can get standard base64 image data url text or save image to file. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.",
Copy file name to clipboardExpand all lines: readme.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -252,8 +252,13 @@ var qrcode = new QRCode(canvas_object, options_object);
252
252
253
253
// ===== Binary(hex) data mode
254
254
/*
255
-
binary: false // Whether it is binary mode, default is text mode.
255
+
binary: false, // Whether it is binary mode, default is text mode.
256
256
*/
257
+
258
+
// ===== UTF-8 without BOM
259
+
/*
260
+
utf8WithoutBOM: true
261
+
*/
257
262
}
258
263
```
259
264
@@ -327,6 +332,8 @@ var qrcode = new QRCode(canvas_object, options_object);
327
332
|**version**| N | Number |`0`| The symbol versions of QR Code range from Version `1` to Version `40`. default 0 means automatically choose the closest version based on the text length. [Information capacity and versions of QR Codes](https://www.qrcode.com/en/about/version.html)**NOTE**: If you set a value less than the minimum version available for text, the minimum version is automatically used. |
328
333
| Tooltip options| --- | ---|---|---|
329
334
|**tooltip**| N | Boolean |`false`| Whether set the QRCode Text as the title attribute value of the QRCode div. |
335
+
| UTF-8 options| --- | ---|---|---|
336
+
|**utf8WithoutBOM**| N | Boolean |`true`| Use UTF-8 without BOM. set to `false` value will use BOM in UFT-8.|
330
337
| Binary(hex) data model options| --- | ---|---|---|
331
338
|**binary**| N | Boolean |`false`| Whether it is binary mode, default is text mode. |
0 commit comments