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
+67-27Lines changed: 67 additions & 27 deletions
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.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "easyqrcode-react-native",
3
-
"version": "3.9.5",
3
+
"version": "4.0.0",
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
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,11 +179,13 @@ var qrcode = new QRCode(canvas_object, options_object);
179
179
180
180
// ====== Logo
181
181
/*
182
-
logo:"https://avatars1.githubusercontent.com/u/4082017?s=160&v=4", // support: Static Image Resources, Network Images, Base64 Uri Data Images
183
-
logoWidth:80, // width. default is automatic width
184
-
logoHeight:80, // height. default is automatic height
185
-
logoBackgroundColor:'#fffff', // Logo backgroud color, Invalid when `logBgTransparent` is true; default is '#ffffff'
186
-
logoBackgroundTransparent:false, // Whether use transparent image, default is false
182
+
logo: "https://avatars1.githubusercontent.com/u/4082017?s=160&v=4", // support: Static Image Resources, Network Images, Base64 Uri Data Images
183
+
logoWidth: 80, // fixed logo width. default is `width/3.5`
184
+
logoHeight: 80, // fixed logo height. default is `heigth/3.5`
185
+
logoMaxWidth: undefined, // Maximum logo width. if set will ignore `logoWidth` value
186
+
logoMaxHeight: undefined, // Maximum logo height. if set will ignore `logoHeight` value
187
+
logoBackgroundColor: '#fffff', // Logo backgroud color, Invalid when `logBgTransparent` is true; default is '#ffffff'
188
+
logoBackgroundTransparent: false, // Whether use transparent image, default is false
187
189
*/
188
190
189
191
// ====== Backgroud Image
@@ -278,8 +280,10 @@ var qrcode = new QRCode(canvas_object, options_object);
278
280
|**quietZoneColor**| N | String |`rgba(0,0,0,0)`| Background CSS color to Quiet Zone |
279
281
| Logo options| --- | ---|---|---|
280
282
|**logo**| N | String |`undefined`| support: Static Image Resources, Network Images(`http://`, `https://`, `ftp://`), Base64 Uri Data Images |
281
-
|**logoWidth**| N | Number |`undefined`| Height |
282
-
|**logoHeight**| N | Number |`undefined`| Width |
283
+
|**logoWidth**| N | Number |`width/3.5`| Fixed logo width. |
284
+
|**logoHeight**| N | Number |`height/3.5`| fixed logo height. |
285
+
|**maxLogoWidth**| N | Number |`undefined`| Maximum logo width. if set will ignore `logoWidth` value. |
286
+
|**maxLogoHeight**| N | Number |`undefined`| Maximum logo height. if set will ignore `logoHeight` value. |
283
287
|**logoBackgroundTransparent**| N | Boolean |`false`| Whether the background transparent image(`PNG`) shows transparency. When `true`, `logoBackgroundColor` is invalid |
284
288
|**logoBackgroundColor**| N | String |`#ffffff`| Set Background CSS Color when image background transparent. Valid when `logoBackgroundTransparent` is `false`|
0 commit comments