@momo-kits/foundation 0.80.1 → 0.80.2-beta.2
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/Application/ModalScreen.tsx +6 -0
- package/Consts/theme.ts +3 -0
- package/package.json +2 -2
- package/verify.js +7 -0
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
Pressable,
|
|
6
6
|
StyleSheet,
|
|
7
7
|
View,
|
|
8
|
+
Keyboard,
|
|
8
9
|
} from 'react-native';
|
|
9
10
|
import {SafeAreaView, useSafeAreaInsets} from 'react-native-safe-area-context';
|
|
10
11
|
import {
|
|
@@ -115,9 +116,14 @@ const BottomSheet: React.FC<BottomSheetParams> = props => {
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
useEffect(() => {
|
|
119
|
+
const keyboardDidShow = Keyboard.addListener('keyboardDidShow', () =>
|
|
120
|
+
bottomSheetRef.current?.expand(),
|
|
121
|
+
);
|
|
122
|
+
|
|
118
123
|
bottomSheetRef.current?.present();
|
|
119
124
|
return () => {
|
|
120
125
|
mountedRef.current = false;
|
|
126
|
+
keyboardDidShow.remove();
|
|
121
127
|
};
|
|
122
128
|
}, []);
|
|
123
129
|
|
package/Consts/theme.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/foundation",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.2-beta.2",
|
|
4
4
|
"description": "React Native Component Kits",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
},
|
|
43
43
|
"author": "@momo-kits/foundation",
|
|
44
44
|
"license": "ISC"
|
|
45
|
-
}
|
|
45
|
+
}
|
package/verify.js
CHANGED
|
@@ -11,7 +11,14 @@ try {
|
|
|
11
11
|
const iOSAppTarget = appInfo?.client?.ios.deploymentTarget;
|
|
12
12
|
const androidAppTarget = appInfo?.client?.android.deploymentTarget;
|
|
13
13
|
|
|
14
|
+
if (appInfo.name === 'MoMoPlatform') {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
if (packageVersion > iOSAppTarget || packageVersion > androidAppTarget) {
|
|
19
|
+
console.error(
|
|
20
|
+
`Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}`,
|
|
21
|
+
);
|
|
15
22
|
throw new Error(
|
|
16
23
|
`Package ${packageInfo.name} version: ${packageInfo.version} require deploymentTarget ${packageVersion}`,
|
|
17
24
|
);
|