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

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