@momo-kits/foundation 0.92.28 → 0.92.29
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/Input/InputOTP.tsx +2 -1
- package/package.json +1 -1
- package/verify.js +7 -7
package/Input/InputOTP.tsx
CHANGED
|
@@ -74,6 +74,7 @@ const InputOTP = forwardRef(
|
|
|
74
74
|
placeholder,
|
|
75
75
|
onChangeText,
|
|
76
76
|
onBlur,
|
|
77
|
+
onFocus,
|
|
77
78
|
dataType = 'number',
|
|
78
79
|
params,
|
|
79
80
|
style,
|
|
@@ -215,7 +216,7 @@ const InputOTP = forwardRef(
|
|
|
215
216
|
value={value}
|
|
216
217
|
onChangeText={_onChangeText}
|
|
217
218
|
keyboardType={dataType === 'number' ? 'number-pad' : 'default'}
|
|
218
|
-
onFocus={
|
|
219
|
+
onFocus={onFocus}
|
|
219
220
|
onBlur={onBlurInput}
|
|
220
221
|
style={{opacity: 0}}
|
|
221
222
|
selectionColor={theme.colors.primary}
|
package/package.json
CHANGED
package/verify.js
CHANGED
|
@@ -3,14 +3,14 @@ const path = require('path');
|
|
|
3
3
|
|
|
4
4
|
try {
|
|
5
5
|
const packageInfo = JSON.parse(
|
|
6
|
-
fs.readFileSync(path.join(`${__dirname}`, 'package.json'), 'utf8')
|
|
6
|
+
fs.readFileSync(path.join(`${__dirname}`, 'package.json'), 'utf8')
|
|
7
7
|
);
|
|
8
8
|
const packageVersion = parseInt(packageInfo?.version.split('.')?.[1]);
|
|
9
9
|
|
|
10
10
|
const app = path.join(`${__dirname}/../../../`, 'app.json');
|
|
11
11
|
const miniJson = path.join(`${__dirname}/../../../`, 'package.json');
|
|
12
12
|
|
|
13
|
-
if (!fs.existsSync(app) || fs.existsSync(miniJson)) {
|
|
13
|
+
if (!fs.existsSync(app) || !fs.existsSync(miniJson)) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -22,10 +22,10 @@ try {
|
|
|
22
22
|
|
|
23
23
|
if (packageVersion > iOSAppTarget || packageVersion > androidAppTarget) {
|
|
24
24
|
console.error(
|
|
25
|
-
`Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}
|
|
25
|
+
`Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}`
|
|
26
26
|
);
|
|
27
27
|
throw new Error(
|
|
28
|
-
`Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}
|
|
28
|
+
`Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}`
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -35,13 +35,13 @@ try {
|
|
|
35
35
|
packageInfo?.version
|
|
36
36
|
) {
|
|
37
37
|
console.error(
|
|
38
|
-
`Package ${packageInfo.name} version: ${packageInfo.version} require install resolutions @momo-platform/momo-core ${packageInfo.version}
|
|
38
|
+
`Package ${packageInfo.name} version: ${packageInfo.version} require install resolutions @momo-platform/momo-core ${packageInfo.version}`
|
|
39
39
|
);
|
|
40
40
|
throw new Error(
|
|
41
|
-
`Package ${packageInfo.name} version: ${packageInfo.version} require install resolutions @momo-platform/momo-core ${packageInfo.version}
|
|
41
|
+
`Package ${packageInfo.name} version: ${packageInfo.version} require install resolutions @momo-platform/momo-core ${packageInfo.version}`
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
} catch (error) {
|
|
45
45
|
console.error(`Installation failed: ${error.message}`);
|
|
46
|
-
process.exit(
|
|
46
|
+
process.exit(0);
|
|
47
47
|
}
|