From 3d01dfa34d1e82821b65cb18d1be33244136f186 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Tue, 7 Jul 2020 16:58:41 +0200 Subject: [PATCH] fix keyboard avoiding view bug with translucent status bar --- .../src/main/java/com/facebook/react/ReactRootView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index 43d91482f1af7e..45049cb5a65366 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -684,7 +684,7 @@ private void checkForKeyboardEvents() { sendEvent( "keyboardDidHide", createKeyboardEventPayload( - PixelUtil.toDIPFromPixel(mVisibleViewArea.height()), + PixelUtil.toDIPFromPixel(mLastHeight), 0, PixelUtil.toDIPFromPixel(mVisibleViewArea.width()), 0));