@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 +1 -8
- package/package.json +1 -1
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
|
|
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;
|