@momo-kits/qrcode 0.150.2-phuc.13 → 0.151.1-beta.1
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.
- package/android/src/main/java/com/momokits/qrcode/MomoBarCodeViewManager.kt +8 -8
- package/android/src/main/java/com/momokits/qrcode/MomoQrCodeViewManager.kt +5 -5
- package/package.json +10 -101
- package/src/BarCodeView.tsx +4 -4
- package/src/QRCodeView.tsx +15 -15
- package/src/RNBarCodeNativeComponent.ts +2 -2
- package/src/RNQRCodeNativeComponent.ts +1 -1
- package/lib/module/BarCodeView.js +0 -16
- package/lib/module/BarCodeView.js.map +0 -1
- package/lib/module/QRCodeView.js +0 -42
- package/lib/module/QRCodeView.js.map +0 -1
- package/lib/module/RNBarCodeNativeComponent.ts +0 -15
- package/lib/module/RNQRCodeNativeComponent.ts +0 -10
- package/lib/module/index.js +0 -8
- package/lib/module/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/src/BarCodeView.d.ts +0 -10
- package/lib/typescript/src/BarCodeView.d.ts.map +0 -1
- package/lib/typescript/src/QRCodeView.d.ts +0 -14
- package/lib/typescript/src/QRCodeView.d.ts.map +0 -1
- package/lib/typescript/src/RNBarCodeNativeComponent.d.ts +0 -15
- package/lib/typescript/src/RNBarCodeNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/RNQRCodeNativeComponent.d.ts +0 -10
- package/lib/typescript/src/RNQRCodeNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts +0 -6
- package/lib/typescript/src/index.d.ts.map +0 -1
|
@@ -35,8 +35,8 @@ class MomoBarCodeViewManager :
|
|
|
35
35
|
override fun getName() = REACT_CLASS
|
|
36
36
|
|
|
37
37
|
private var code: String? = null
|
|
38
|
-
private var width:
|
|
39
|
-
private var height:
|
|
38
|
+
private var width: Double = 0.0
|
|
39
|
+
private var height: Double = 0.0
|
|
40
40
|
private var ratio: Double = 1.0
|
|
41
41
|
|
|
42
42
|
private val hintMap = HashMap<EncodeHintType, Any>()
|
|
@@ -68,20 +68,20 @@ class MomoBarCodeViewManager :
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
@ReactProp(name = "ratio")
|
|
71
|
-
override fun setRatio(view: ImageView,
|
|
72
|
-
this.ratio = ratio ?: 1.0
|
|
71
|
+
override fun setRatio(view: ImageView, ratio: Float) {
|
|
72
|
+
this.ratio = (ratio ?: 1.0).toDouble()
|
|
73
73
|
parseToBarCode(view)
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
@ReactProp(name = "width")
|
|
77
|
-
override fun setWidth(view: ImageView, width:
|
|
78
|
-
this.width = width ?: 0
|
|
77
|
+
override fun setWidth(view: ImageView, width: Float) {
|
|
78
|
+
this.width = (width ?: 0).toDouble()
|
|
79
79
|
parseToBarCode(view)
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
@ReactProp(name = "height")
|
|
83
|
-
override fun setHeight(view: ImageView, height:
|
|
84
|
-
this.height = height ?: 0
|
|
83
|
+
override fun setHeight(view: ImageView, height: Float) {
|
|
84
|
+
this.height = (height ?: 0).toDouble()
|
|
85
85
|
parseToBarCode(view)
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -26,7 +26,7 @@ class MomoQrCodeViewManager :
|
|
|
26
26
|
RNQRCodeManagerInterface<ImageView> {
|
|
27
27
|
|
|
28
28
|
private var code: String? = null
|
|
29
|
-
private var size:
|
|
29
|
+
private var size: Double = 200.0
|
|
30
30
|
private var ratio: Double = 1.0
|
|
31
31
|
|
|
32
32
|
|
|
@@ -52,14 +52,14 @@ class MomoQrCodeViewManager :
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@ReactProp(name = "ratio")
|
|
55
|
-
override fun setRatio(view: ImageView,
|
|
56
|
-
this.ratio = ratio ?: 1.0
|
|
55
|
+
override fun setRatio(view: ImageView, ratio: Float) {
|
|
56
|
+
this.ratio = (ratio ?: 1.0).toDouble()
|
|
57
57
|
parseToQRCode(view)
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
@ReactProp(name = "size")
|
|
61
|
-
override fun setSize(view: ImageView, size:
|
|
62
|
-
this.size = size ?: 0
|
|
61
|
+
override fun setSize(view: ImageView, size: Float) {
|
|
62
|
+
this.size = (size ?: 0.0).toDouble()
|
|
63
63
|
parseToQRCode(view)
|
|
64
64
|
}
|
|
65
65
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/qrcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.1-beta.1",
|
|
4
4
|
"description": "A simple and customizable QR code generator component for React Native apps.",
|
|
5
|
-
"main": "./
|
|
6
|
-
"types": "./lib/typescript/src/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"source": "./src/index.tsx",
|
|
10
|
-
"types": "./lib/typescript/src/index.d.ts",
|
|
11
|
-
"default": "./lib/module/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./package.json": "./package.json"
|
|
14
|
-
},
|
|
5
|
+
"main": "./src/index.tsx",
|
|
15
6
|
"files": [
|
|
16
7
|
"src",
|
|
17
8
|
"lib",
|
|
@@ -37,7 +28,7 @@
|
|
|
37
28
|
"typecheck": "tsc",
|
|
38
29
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
39
30
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
40
|
-
"build": "
|
|
31
|
+
"build": "echo",
|
|
41
32
|
"release": "release-it --only-version"
|
|
42
33
|
},
|
|
43
34
|
"keywords": [
|
|
@@ -59,94 +50,16 @@
|
|
|
59
50
|
"registry": "https://registry.npmjs.org/"
|
|
60
51
|
},
|
|
61
52
|
"devDependencies": {
|
|
62
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
63
|
-
"@eslint/compat": "^1.2.7",
|
|
64
|
-
"@eslint/eslintrc": "^3.3.0",
|
|
65
|
-
"@eslint/js": "^9.22.0",
|
|
66
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
67
|
-
"@react-native-community/cli": "15.0.0-alpha.2",
|
|
68
|
-
"@react-native/babel-preset": "0.79.2",
|
|
69
|
-
"@react-native/eslint-config": "^0.78.0",
|
|
70
|
-
"@release-it/conventional-changelog": "^9.0.2",
|
|
71
|
-
"@types/jest": "^29.5.5",
|
|
72
|
-
"@types/react": "^19.0.0",
|
|
73
|
-
"commitlint": "^19.6.1",
|
|
74
|
-
"del-cli": "^5.1.0",
|
|
75
|
-
"eslint": "^9.22.0",
|
|
76
|
-
"eslint-config-prettier": "^10.1.1",
|
|
77
|
-
"eslint-plugin-prettier": "^5.2.3",
|
|
78
|
-
"jest": "^29.7.0",
|
|
79
|
-
"prettier": "^3.0.3",
|
|
80
53
|
"react": "19.0.0",
|
|
81
|
-
"react-native": "0.80.1"
|
|
82
|
-
"react-native-builder-bob": "^0.40.12",
|
|
83
|
-
"release-it": "^17.10.0",
|
|
84
|
-
"turbo": "^1.10.7",
|
|
85
|
-
"typescript": "^5.8.3"
|
|
54
|
+
"react-native": "0.80.1"
|
|
86
55
|
},
|
|
87
56
|
"peerDependencies": {
|
|
88
57
|
"react": "*",
|
|
89
|
-
"react-native": "*"
|
|
90
|
-
|
|
91
|
-
"workspaces": [
|
|
92
|
-
"example"
|
|
93
|
-
],
|
|
94
|
-
"packageManager": "yarn@1.22.22",
|
|
95
|
-
"jest": {
|
|
96
|
-
"preset": "react-native",
|
|
97
|
-
"modulePathIgnorePatterns": [
|
|
98
|
-
"<rootDir>/example/node_modules",
|
|
99
|
-
"<rootDir>/lib/"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
"commitlint": {
|
|
103
|
-
"extends": [
|
|
104
|
-
"@commitlint/config-conventional"
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"release-it": {
|
|
108
|
-
"git": {
|
|
109
|
-
"commitMessage": "chore: release ${version}",
|
|
110
|
-
"tagName": "v${version}"
|
|
111
|
-
},
|
|
112
|
-
"npm": {
|
|
113
|
-
"publish": true
|
|
114
|
-
},
|
|
115
|
-
"github": {
|
|
116
|
-
"release": true
|
|
117
|
-
},
|
|
118
|
-
"plugins": {
|
|
119
|
-
"@release-it/conventional-changelog": {
|
|
120
|
-
"preset": {
|
|
121
|
-
"name": "angular"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"prettier": {
|
|
127
|
-
"quoteProps": "consistent",
|
|
128
|
-
"singleQuote": true,
|
|
129
|
-
"tabWidth": 2,
|
|
130
|
-
"trailingComma": "es5",
|
|
131
|
-
"useTabs": false
|
|
58
|
+
"react-native": "*",
|
|
59
|
+
"@momo-kits/foundation": "latest"
|
|
132
60
|
},
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"output": "lib",
|
|
136
|
-
"targets": [
|
|
137
|
-
[
|
|
138
|
-
"module",
|
|
139
|
-
{
|
|
140
|
-
"esm": true
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
[
|
|
144
|
-
"typescript",
|
|
145
|
-
{
|
|
146
|
-
"project": "tsconfig.build.json"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
]
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=18.0.0"
|
|
150
63
|
},
|
|
151
64
|
"codegenConfig": {
|
|
152
65
|
"name": "QrcodeViewSpec",
|
|
@@ -162,9 +75,5 @@
|
|
|
162
75
|
}
|
|
163
76
|
}
|
|
164
77
|
},
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
"type": "fabric-view",
|
|
168
|
-
"version": "0.51.1"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
78
|
+
"dependencies": {}
|
|
79
|
+
}
|
package/src/BarCodeView.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import RNBarCode from './RNBarCodeNativeComponent';
|
|
2
|
-
import { PixelRatio
|
|
2
|
+
import { PixelRatio } from 'react-native';
|
|
3
3
|
|
|
4
4
|
type BarCodeViewProps = {
|
|
5
5
|
code: string;
|
|
6
|
-
width:
|
|
7
|
-
height:
|
|
8
|
-
ratio?:
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
ratio?: number;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
const BarCodeView = ({ ratio, ...props }: BarCodeViewProps) => {
|
package/src/QRCodeView.tsx
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { Image, PixelRatio } from 'react-native';
|
|
1
|
+
import { Image, PixelRatio, StyleSheet, View } from 'react-native';
|
|
2
2
|
import RNQRCode from './RNQRCodeNativeComponent';
|
|
3
|
-
import type { CodegenTypes } from 'react-native';
|
|
4
3
|
|
|
5
4
|
const ratio = PixelRatio.get();
|
|
6
5
|
const ic_logo =
|
|
7
|
-
'https://
|
|
6
|
+
'https://static.momocdn.net/app/img/icon/ic-qrcode-package/ic_momo.png';
|
|
8
7
|
|
|
9
8
|
type QRCodeViewProps = {
|
|
10
9
|
code: string;
|
|
11
|
-
size:
|
|
12
|
-
ratio?:
|
|
10
|
+
size: number;
|
|
11
|
+
ratio?: number;
|
|
13
12
|
icon?: string;
|
|
14
13
|
showLogo?: boolean;
|
|
15
|
-
iconSize?:
|
|
14
|
+
iconSize?: number;
|
|
16
15
|
iconStyle?: any;
|
|
17
16
|
style?: any;
|
|
18
17
|
};
|
|
@@ -29,19 +28,13 @@ const QRCodeView = ({
|
|
|
29
28
|
...rest
|
|
30
29
|
}: QRCodeViewProps) => {
|
|
31
30
|
return (
|
|
32
|
-
|
|
31
|
+
<View style={[styles.container, { width: size, height: size }, style]}>
|
|
33
32
|
<RNQRCode
|
|
34
33
|
code={code}
|
|
35
34
|
ratio={customRatio ?? ratio}
|
|
36
35
|
size={size}
|
|
37
36
|
{...rest}
|
|
38
|
-
style={
|
|
39
|
-
{
|
|
40
|
-
width: size,
|
|
41
|
-
height: size,
|
|
42
|
-
},
|
|
43
|
-
style,
|
|
44
|
-
]}
|
|
37
|
+
style={{ width: '100%', height: '100%' }}
|
|
45
38
|
/>
|
|
46
39
|
{showLogo ? (
|
|
47
40
|
<Image
|
|
@@ -56,8 +49,15 @@ const QRCodeView = ({
|
|
|
56
49
|
]}
|
|
57
50
|
/>
|
|
58
51
|
) : null}
|
|
59
|
-
|
|
52
|
+
</View>
|
|
60
53
|
);
|
|
61
54
|
};
|
|
62
55
|
|
|
56
|
+
const styles = StyleSheet.create({
|
|
57
|
+
container: {
|
|
58
|
+
alignItems: 'center',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
63
|
export default QRCodeView;
|
|
@@ -7,9 +7,9 @@ export interface BarCodeNativeComponentProps extends ViewProps {
|
|
|
7
7
|
/** scale-factor for the raw CIImage */
|
|
8
8
|
ratio?: CodegenTypes.Float;
|
|
9
9
|
/** pixel width of the final barcode */
|
|
10
|
-
width?: CodegenTypes.
|
|
10
|
+
width?: CodegenTypes.Float;
|
|
11
11
|
/** pixel height of the final barcode */
|
|
12
|
-
height?: CodegenTypes.
|
|
12
|
+
height?: CodegenTypes.Float;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export default codegenNativeComponent<BarCodeNativeComponentProps>('RNBarCode');
|
|
@@ -4,7 +4,7 @@ import { codegenNativeComponent, CodegenTypes } from 'react-native';
|
|
|
4
4
|
export interface QRCodeNativeComponentProps extends ViewProps {
|
|
5
5
|
code?: string;
|
|
6
6
|
ratio?: CodegenTypes.Float;
|
|
7
|
-
size?: CodegenTypes.
|
|
7
|
+
size?: CodegenTypes.Float;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export default codegenNativeComponent<QRCodeNativeComponentProps>('RNQRCode');
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/lib/module/QRCodeView.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
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');
|
|
@@ -1,10 +0,0 @@
|
|
|
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');
|
package/lib/module/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
package/lib/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/lib/module/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|