@momo-kits/qrcode 0.150.2-beta.18 → 0.150.2-beta.19

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.
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ import RNBarCode from './RNBarCodeNativeComponent';
4
+ import { PixelRatio } from 'react-native';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const BarCodeView = ({
7
+ ratio,
8
+ ...props
9
+ }) => {
10
+ return /*#__PURE__*/_jsx(RNBarCode, {
11
+ ratio: ratio ?? PixelRatio.get(),
12
+ ...props
13
+ });
14
+ };
15
+ export default BarCodeView;
16
+ //# sourceMappingURL=BarCodeView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNBarCode","PixelRatio","jsx","_jsx","BarCodeView","ratio","props","get"],"sourceRoot":"../../src","sources":["BarCodeView.tsx"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,4BAA4B;AAClD,SAASC,UAAU,QAAsB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASxD,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAE,GAAGC;AAAwB,CAAC,KAAK;EAC7D,oBAAOH,IAAA,CAACH,SAAS;IAACK,KAAK,EAAEA,KAAK,IAAIJ,UAAU,CAACM,GAAG,CAAC,CAAE;IAAA,GAAKD;EAAK,CAAG,CAAC;AACnE,CAAC;AAED,eAAeF,WAAW","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ import { Image, PixelRatio } from 'react-native';
4
+ import RNQRCode from './RNQRCodeNativeComponent';
5
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const ratio = PixelRatio.get();
7
+ const ic_logo = 'https://img.mservice.io/momo_app_v2/new_version/img/appx_image/ic_momo.png';
8
+ const QRCodeView = ({
9
+ code,
10
+ showLogo = false,
11
+ ratio: customRatio,
12
+ icon = ic_logo,
13
+ iconSize = 32,
14
+ size,
15
+ iconStyle,
16
+ style,
17
+ ...rest
18
+ }) => {
19
+ return /*#__PURE__*/_jsxs(_Fragment, {
20
+ children: [/*#__PURE__*/_jsx(RNQRCode, {
21
+ code: code,
22
+ ratio: customRatio ?? ratio,
23
+ size: size,
24
+ ...rest,
25
+ style: [{
26
+ width: size,
27
+ height: size
28
+ }, style]
29
+ }), showLogo ? /*#__PURE__*/_jsx(Image, {
30
+ source: {
31
+ uri: icon
32
+ },
33
+ style: [{
34
+ width: iconSize,
35
+ height: iconSize,
36
+ position: 'absolute'
37
+ }, iconStyle]
38
+ }) : null]
39
+ });
40
+ };
41
+ export default QRCodeView;
42
+ //# sourceMappingURL=QRCodeView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Image","PixelRatio","RNQRCode","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ratio","get","ic_logo","QRCodeView","code","showLogo","customRatio","icon","iconSize","size","iconStyle","style","rest","children","width","height","source","uri","position"],"sourceRoot":"../../src","sources":["QRCodeView.tsx"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAChD,OAAOC,QAAQ,MAAM,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAGjD,MAAMC,KAAK,GAAGR,UAAU,CAACS,GAAG,CAAC,CAAC;AAC9B,MAAMC,OAAO,GACX,4EAA4E;AAa9E,MAAMC,UAAU,GAAGA,CAAC;EAClBC,IAAI;EACJC,QAAQ,GAAG,KAAK;EAChBL,KAAK,EAAEM,WAAW;EAClBC,IAAI,GAAGL,OAAO;EACdM,QAAQ,GAAG,EAAE;EACbC,IAAI;EACJC,SAAS;EACTC,KAAK;EACL,GAAGC;AACY,CAAC,KAAK;EACrB,oBACEb,KAAA,CAAAF,SAAA;IAAAgB,QAAA,gBACElB,IAAA,CAACF,QAAQ;MACPW,IAAI,EAAEA,IAAK;MACXJ,KAAK,EAAEM,WAAW,IAAIN,KAAM;MAC5BS,IAAI,EAAEA,IAAK;MAAA,GACPG,IAAI;MACRD,KAAK,EAAE,CACL;QACEG,KAAK,EAAEL,IAAI;QACXM,MAAM,EAAEN;MACV,CAAC,EACDE,KAAK;IACL,CACH,CAAC,EACDN,QAAQ,gBACPV,IAAA,CAACJ,KAAK;MACJyB,MAAM,EAAE;QAAEC,GAAG,EAAEV;MAAK,CAAE;MACtBI,KAAK,EAAE,CACL;QACEG,KAAK,EAAEN,QAAQ;QACfO,MAAM,EAAEP,QAAQ;QAChBU,QAAQ,EAAE;MACZ,CAAC,EACDR,SAAS;IACT,CACH,CAAC,GACA,IAAI;EAAA,CACR,CAAC;AAEP,CAAC;AAED,eAAeP,UAAU","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import { codegenNativeComponent, CodegenTypes } from 'react-native';
3
+
4
+ export interface BarCodeNativeComponentProps extends ViewProps {
5
+ /** the data string to encode */
6
+ code?: string;
7
+ /** scale-factor for the raw CIImage */
8
+ ratio?: CodegenTypes.Float;
9
+ /** pixel width of the final barcode */
10
+ width?: CodegenTypes.Int32;
11
+ /** pixel height of the final barcode */
12
+ height?: CodegenTypes.Int32;
13
+ }
14
+
15
+ export default codegenNativeComponent<BarCodeNativeComponentProps>('RNBarCode');
@@ -0,0 +1,10 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import { codegenNativeComponent, CodegenTypes } from 'react-native';
3
+
4
+ export interface QRCodeNativeComponentProps extends ViewProps {
5
+ code?: string;
6
+ ratio?: CodegenTypes.Float;
7
+ size?: CodegenTypes.Int32;
8
+ }
9
+
10
+ export default codegenNativeComponent<QRCodeNativeComponentProps>('RNQRCode');
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ import RNQRCode from './RNQRCodeNativeComponent';
4
+ import RNBarCode from './RNBarCodeNativeComponent';
5
+ import BarCodeView from "./BarCodeView.js";
6
+ import QRCodeView from "./QRCodeView.js";
7
+ export { BarCodeView, QRCodeView, RNQRCode, RNBarCode };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNQRCode","RNBarCode","BarCodeView","QRCodeView"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,QAAQ,MAAM,2BAA2B;AAChD,OAAOC,SAAS,MAAM,4BAA4B;AAClD,OAAOC,WAAW,MAAM,kBAAe;AACvC,OAAOC,UAAU,MAAM,iBAAc;AAErC,SAASD,WAAW,EAAEC,UAAU,EAAEH,QAAQ,EAAEC,SAAS","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,10 @@
1
+ import { CodegenTypes } from 'react-native';
2
+ type BarCodeViewProps = {
3
+ code: string;
4
+ width: CodegenTypes.Int32;
5
+ height: CodegenTypes.Int32;
6
+ ratio?: CodegenTypes.Float;
7
+ };
8
+ declare const BarCodeView: ({ ratio, ...props }: BarCodeViewProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default BarCodeView;
10
+ //# sourceMappingURL=BarCodeView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BarCodeView.d.ts","sourceRoot":"","sources":["../../../src/BarCodeView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;AAExD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC;IAC1B,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC;IAC3B,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,qBAAqB,gBAAgB,4CAEzD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { CodegenTypes } from 'react-native';
2
+ type QRCodeViewProps = {
3
+ code: string;
4
+ size: CodegenTypes.Int32;
5
+ ratio?: CodegenTypes.Float;
6
+ icon?: string;
7
+ showLogo?: boolean;
8
+ iconSize?: CodegenTypes.Int32;
9
+ iconStyle?: any;
10
+ style?: any;
11
+ };
12
+ declare const QRCodeView: ({ code, showLogo, ratio: customRatio, icon, iconSize, size, iconStyle, style, ...rest }: QRCodeViewProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default QRCodeView;
14
+ //# sourceMappingURL=QRCodeView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QRCodeView.d.ts","sourceRoot":"","sources":["../../../src/QRCodeView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAMjD,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAC9B,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,yFAUjB,eAAe,4CA+BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import { CodegenTypes } from 'react-native';
3
+ export interface BarCodeNativeComponentProps extends ViewProps {
4
+ /** the data string to encode */
5
+ code?: string;
6
+ /** scale-factor for the raw CIImage */
7
+ ratio?: CodegenTypes.Float;
8
+ /** pixel width of the final barcode */
9
+ width?: CodegenTypes.Int32;
10
+ /** pixel height of the final barcode */
11
+ height?: CodegenTypes.Int32;
12
+ }
13
+ declare const _default: import("react-native").HostComponent<BarCodeNativeComponentProps>;
14
+ export default _default;
15
+ //# sourceMappingURL=RNBarCodeNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNBarCodeNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/RNBarCodeNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAA0B,YAAY,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAC3B,uCAAuC;IACvC,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAC3B,wCAAwC;IACxC,MAAM,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;CAC7B;;AAED,wBAAgF"}
@@ -0,0 +1,10 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import { CodegenTypes } from 'react-native';
3
+ export interface QRCodeNativeComponentProps extends ViewProps {
4
+ code?: string;
5
+ ratio?: CodegenTypes.Float;
6
+ size?: CodegenTypes.Int32;
7
+ }
8
+ declare const _default: import("react-native").HostComponent<QRCodeNativeComponentProps>;
9
+ export default _default;
10
+ //# sourceMappingURL=RNQRCodeNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNQRCodeNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/RNQRCodeNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAA0B,YAAY,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,0BAA2B,SAAQ,SAAS;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;CAC3B;;AAED,wBAA8E"}
@@ -0,0 +1,6 @@
1
+ import RNQRCode from './RNQRCodeNativeComponent';
2
+ import RNBarCode from './RNBarCodeNativeComponent';
3
+ import BarCodeView from './BarCodeView';
4
+ import QRCodeView from './QRCodeView';
5
+ export { BarCodeView, QRCodeView, RNQRCode, RNBarCode };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/qrcode",
3
- "version": "0.150.2-beta.18",
3
+ "version": "0.150.2-beta.19",
4
4
  "description": "A simple and customizable QR code generator component for React Native apps.",
5
5
  "main": "./src/index.tsx",
6
6
  "types": "./src/index.tsx",
@@ -29,7 +29,7 @@
29
29
  "typecheck": "tsc",
30
30
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
31
31
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
32
- "build": "echo 'build step'",
32
+ "build": "echo",
33
33
  "release": "release-it --only-version"
34
34
  },
35
35
  "keywords": [