@momo-kits/foundation 0.161.2-beta.22 → 0.161.2-beta.24

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/Layout/Screen.tsx CHANGED
@@ -204,14 +204,7 @@ const Screen = forwardRef(
204
204
  let handleScroll;
205
205
  let Component: any = View;
206
206
 
207
- const maxBottomInset = useRef(0);
208
- if (insets.bottom > maxBottomInset.current) {
209
- maxBottomInset.current = insets.bottom;
210
- }
211
- const bottomInset =
212
- Platform.OS === 'ios'
213
- ? Math.min(insets.bottom, 21)
214
- : maxBottomInset.current;
207
+ const bottomInset = Platform.OS === 'ios' ? Math.min(insets.bottom, 21) : insets.bottom;
215
208
  let keyboardOffset = heightHeader - bottomInset;
216
209
  if (headerType === 'extended' || animatedHeader || inputSearchProps) {
217
210
  keyboardOffset = -bottomInset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.161.2-beta.22",
3
+ "version": "0.161.2-beta.24",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},