@momo-kits/foundation 0.151.1-beta.4 → 0.151.1-beta.4-sp.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.
@@ -107,6 +107,7 @@ const Modal: React.FC<ModalParams> = props => {
107
107
  visible={true}
108
108
  onRequestClose={onDismiss}
109
109
  style={StyleSheet.absoluteFillObject}
110
+ isModalKit={true}
110
111
  >
111
112
  <KeyboardAvoidingView
112
113
  style={Styles.flexCenter}
package/Input/Input.tsx CHANGED
@@ -85,6 +85,7 @@ const Input = forwardRef(
85
85
 
86
86
  const onClearText = () => {
87
87
  inputRef?.current?.clear();
88
+ inputRef.current?.setNativeProps({ text: '' });
88
89
  _onChangeText('');
89
90
  };
90
91
 
@@ -122,6 +122,7 @@ const InputMoney = forwardRef(
122
122
 
123
123
  const onClearText = () => {
124
124
  inputRef?.current?.clear();
125
+ inputRef.current?.setNativeProps({ text: '' });
125
126
  setDisplayValue('');
126
127
  setNumericValue('');
127
128
  onChangeText?.('');
@@ -166,6 +166,7 @@ const InputSearch: ForwardRefRenderFunction<InputRef, InputSearchProps> = (
166
166
 
167
167
  const onClearText = () => {
168
168
  inputRef?.current?.clear();
169
+ inputRef.current?.setNativeProps({ text: '' });
169
170
  _onChangeText('');
170
171
  };
171
172
 
@@ -62,6 +62,7 @@ const InputTextArea = forwardRef(
62
62
 
63
63
  const onClearText = () => {
64
64
  inputRef?.current?.clear();
65
+ inputRef.current?.setNativeProps({ text: '' });
65
66
  _onChangeText('');
66
67
  };
67
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.151.1-beta.4",
3
+ "version": "0.151.1-beta.4-sp.2",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},