@momo-kits/foundation 0.161.2-beta.16 → 0.161.2-beta.17
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 +3 -3
- package/package.json +1 -1
package/Layout/Screen.tsx
CHANGED
|
@@ -206,11 +206,11 @@ const Screen = forwardRef(
|
|
|
206
206
|
// AI-GENERATED START: track keyboard height (Android tự đẩy; footer bỏ safe-area khi hiện)
|
|
207
207
|
const [keyboardHeight, setKeyboardHeight] = useState(0);
|
|
208
208
|
const isKeyboardVisible = keyboardHeight > 0;
|
|
209
|
-
// Chỉ can thiệp trên Android
|
|
210
|
-
// Android <
|
|
209
|
+
// Chỉ can thiệp trên Android 16+ (API 36): edge-to-edge -> window KHÔNG resize cho bàn phím.
|
|
210
|
+
// Android <16 (window tự resize) và iOS giữ NGUYÊN behavior cũ -> không impact.
|
|
211
211
|
const useManualKeyboardAvoid =
|
|
212
212
|
Platform.OS === 'android' &&
|
|
213
|
-
Number(Platform.Version) >=
|
|
213
|
+
Number(Platform.Version) >= 36 &&
|
|
214
214
|
enableKeyboardAvoidingView;
|
|
215
215
|
useEffect(() => {
|
|
216
216
|
const showEvent =
|