@momo-kits/foundation 0.151.1-beta.5 → 0.151.1-beta.6

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.
@@ -240,7 +240,6 @@ const BottomSheet: React.FC<BottomSheetParams> = props => {
240
240
  onDismiss();
241
241
  }}
242
242
  style={StyleSheet.absoluteFillObject}
243
- isModalKit={true}
244
243
  >
245
244
  <KeyboardAvoidingView
246
245
  behavior={Platform.select({
@@ -107,7 +107,6 @@ const Modal: React.FC<ModalParams> = props => {
107
107
  visible={true}
108
108
  onRequestClose={onDismiss}
109
109
  style={StyleSheet.absoluteFillObject}
110
- isModalKit={true}
111
110
  >
112
111
  <KeyboardAvoidingView
113
112
  style={Styles.flexCenter}
@@ -47,7 +47,20 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
47
47
  const context = useContext<any>(MiniAppContext);
48
48
  const [currentContext, setCurrentContext] = useState({});
49
49
  return (
50
- <SafeAreaProvider>
50
+ <SafeAreaProvider initialMetrics={{
51
+ insets: {
52
+ top: 0,
53
+ bottom: 0,
54
+ left:0,
55
+ right: 0,
56
+ },
57
+ frame: {
58
+ width: 0,
59
+ height: 0,
60
+ x: 0,
61
+ y: 0,
62
+ }
63
+ }}>
51
64
  <MiniAppContext.Provider
52
65
  value={{
53
66
  ...context,
@@ -69,7 +69,22 @@ const WidgetContainer: React.FC<WidgetContainerProps> = ({
69
69
 
70
70
  return (
71
71
  <View style={{ height: height ?? '100%' }}>
72
- <SafeAreaProvider>
72
+ <SafeAreaProvider
73
+ initialMetrics={{
74
+ insets: {
75
+ top: 0,
76
+ bottom: 0,
77
+ left: 0,
78
+ right: 0,
79
+ },
80
+ frame: {
81
+ width: 0,
82
+ height: 0,
83
+ x: 0,
84
+ y: 0,
85
+ },
86
+ }}
87
+ >
73
88
  <MiniAppContext.Provider
74
89
  value={{
75
90
  ...context,
package/Input/Input.tsx CHANGED
@@ -85,7 +85,6 @@ const Input = forwardRef(
85
85
 
86
86
  const onClearText = () => {
87
87
  inputRef?.current?.clear();
88
- inputRef.current?.setNativeProps({ text: '' });
89
88
  _onChangeText('');
90
89
  };
91
90
 
@@ -122,7 +122,6 @@ const InputMoney = forwardRef(
122
122
 
123
123
  const onClearText = () => {
124
124
  inputRef?.current?.clear();
125
- inputRef.current?.setNativeProps({ text: '' });
126
125
  setDisplayValue('');
127
126
  setNumericValue('');
128
127
  onChangeText?.('');
@@ -166,7 +166,6 @@ const InputSearch: ForwardRefRenderFunction<InputRef, InputSearchProps> = (
166
166
 
167
167
  const onClearText = () => {
168
168
  inputRef?.current?.clear();
169
- inputRef.current?.setNativeProps({ text: '' });
170
169
  _onChangeText('');
171
170
  };
172
171
 
@@ -62,7 +62,6 @@ const InputTextArea = forwardRef(
62
62
 
63
63
  const onClearText = () => {
64
64
  inputRef?.current?.clear();
65
- inputRef.current?.setNativeProps({ text: '' });
66
65
  _onChangeText('');
67
66
  };
68
67
 
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
- "name": "@momo-kits/foundation",
3
- "version": "0.151.1-beta.5",
4
- "description": "React Native Component Kits",
5
- "main": "index.ts",
6
- "scripts": {},
7
- "keywords": [
8
- "@momo-kits/foundation"
9
- ],
10
- "dependencies": {
11
- "react-native-fast-image": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-fast-image.git#v8.11.0",
12
- "@react-navigation/bottom-tabs": "7.4.2",
13
- "@react-navigation/core": "7.12.1",
14
- "@react-navigation/elements": "2.5.2",
15
- "@react-navigation/native": "7.1.14",
16
- "@react-navigation/routers": "7.4.1",
17
- "@react-navigation/stack": "7.4.2",
18
- "react-native-gesture-handler": "2.27.1",
19
- "react-native-linear-gradient": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-linear-gradient#v3.0.0",
20
- "react-native-reanimated": "4.1.0",
21
- "react-native-safe-area-context": "5.5.2",
22
- "@shopify/flash-list": "2.1.0"
23
- },
24
- "peerDependencies": {
25
- "react-native": "*"
26
- },
27
- "devDependencies": {
28
- "@momo-platform/versions": "4.1.11",
29
- "@types/color": "3.0.6"
30
- },
31
- "publishConfig": {
32
- "registry": "https://registry.npmjs.org/"
33
- },
34
- "license": "MoMo"
35
- }
2
+ "name": "@momo-kits/foundation",
3
+ "version": "0.151.1-beta.6",
4
+ "description": "React Native Component Kits",
5
+ "main": "index.ts",
6
+ "scripts": {},
7
+ "keywords": [
8
+ "@momo-kits/foundation"
9
+ ],
10
+ "dependencies": {
11
+ "react-native-fast-image": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-fast-image.git#v8.11.0",
12
+ "@react-navigation/bottom-tabs": "7.4.2",
13
+ "@react-navigation/core": "7.12.1",
14
+ "@react-navigation/elements": "2.5.2",
15
+ "@react-navigation/native": "7.1.14",
16
+ "@react-navigation/routers": "7.4.1",
17
+ "@react-navigation/stack": "7.4.2",
18
+ "react-native-gesture-handler": "2.27.1",
19
+ "react-native-linear-gradient": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-linear-gradient#v3.0.0",
20
+ "react-native-reanimated": "4.1.0",
21
+ "react-native-safe-area-context": "5.5.2",
22
+ "@shopify/flash-list": "2.1.0"
23
+ },
24
+ "peerDependencies": {
25
+ "react-native": "*"
26
+ },
27
+ "devDependencies": {
28
+ "@momo-platform/versions": "4.1.11",
29
+ "@types/color": "3.0.6"
30
+ },
31
+ "publishConfig": {
32
+ "registry": "https://registry.npmjs.org/"
33
+ },
34
+ "license": "MoMo"
35
+ }