@momo-kits/camerakit 0.0.61-beta.3 → 0.0.61-beta.30
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/CameraKit.js +5 -1
- package/package.json +3 -3
package/CameraKit.js
CHANGED
|
@@ -9,7 +9,7 @@ const styles = StyleSheet.create({
|
|
|
9
9
|
},
|
|
10
10
|
camera: {
|
|
11
11
|
flex: 1,
|
|
12
|
-
backgroundColor: 'black'
|
|
12
|
+
backgroundColor: 'black',
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -68,6 +68,7 @@ class CameraKit extends React.Component {
|
|
|
68
68
|
type,
|
|
69
69
|
onBarCodeRead,
|
|
70
70
|
zoomMode,
|
|
71
|
+
useMLKit,
|
|
71
72
|
} = this.props;
|
|
72
73
|
|
|
73
74
|
return (
|
|
@@ -80,6 +81,7 @@ class CameraKit extends React.Component {
|
|
|
80
81
|
focusMode={torchMode}
|
|
81
82
|
zoomMode={zoomMode}
|
|
82
83
|
scanBarcode={!!onBarCodeRead}
|
|
84
|
+
useMLKit={useMLKit}
|
|
83
85
|
onReadCode={this.onBarCodeRead}
|
|
84
86
|
onOpenCamera={this.onOpenCamera}
|
|
85
87
|
/>
|
|
@@ -97,6 +99,7 @@ CameraKit.propTypes = {
|
|
|
97
99
|
type: PropTypes.oneOf(['front', 'back']),
|
|
98
100
|
torchMode: PropTypes.oneOf(['on', 'off', 'auto']),
|
|
99
101
|
zoomMode: PropTypes.oneOf(['on', 'off']),
|
|
102
|
+
useMLKit: PropTypes.bool,
|
|
100
103
|
onOpenCamera: PropTypes.func,
|
|
101
104
|
};
|
|
102
105
|
|
|
@@ -104,6 +107,7 @@ CameraKit.defaultProps = {
|
|
|
104
107
|
type: 'back',
|
|
105
108
|
torchMode: 'off',
|
|
106
109
|
zoomMode: 'off',
|
|
110
|
+
useMLKit: true,
|
|
107
111
|
onOpenCamera: () => {},
|
|
108
112
|
};
|
|
109
113
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/camerakit",
|
|
3
|
-
"version": "0.0.61-beta.
|
|
3
|
+
"version": "0.0.61-beta.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"camerakit": "git+https://gitlab.mservice.com.vn/momo-platform/react-native-camera-kit.git#v1.
|
|
7
|
+
"camerakit": "git+https://gitlab.mservice.com.vn/momo-platform/react-native-camera-kit.git#v1.7"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"react": "16.9.0",
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {},
|
|
14
14
|
"license": "MoMo"
|
|
15
|
-
}
|
|
15
|
+
}
|