fix: Fixed issue with keyboard on Android covering content (#2899)
This commit is contained in:
@@ -357,8 +357,8 @@ export class WebApplication extends SNApplication implements WebApplicationInter
|
||||
this.notifyWebEvent(WebAppEvent.MobileKeyboardWillChangeFrame, frame)
|
||||
}
|
||||
|
||||
handleMobileKeyboardDidChangeFrameEvent(frame: { height: number; contentHeight: number }): void {
|
||||
this.notifyWebEvent(WebAppEvent.MobileKeyboardDidChangeFrame, frame)
|
||||
handleMobileKeyboardDidHideEvent(): void {
|
||||
setCustomViewportHeight(100, 'vh', true)
|
||||
}
|
||||
|
||||
handleOpenFilePreviewEvent({ id }: { id: string }): void {
|
||||
|
||||
@@ -73,15 +73,13 @@ export class MobileWebReceiver {
|
||||
case ReactNativeToWebEvent.ColorSchemeChanged:
|
||||
void this.application.handleMobileColorSchemeChangeEvent()
|
||||
break
|
||||
case ReactNativeToWebEvent.KeyboardFrameWillChange:
|
||||
case ReactNativeToWebEvent.KeyboardSizeChanged:
|
||||
void this.application.handleMobileKeyboardWillChangeFrameEvent(
|
||||
messageData as { height: number; contentHeight: number; isFloatingKeyboard: boolean },
|
||||
)
|
||||
break
|
||||
case ReactNativeToWebEvent.KeyboardFrameDidChange:
|
||||
void this.application.handleMobileKeyboardDidChangeFrameEvent(
|
||||
messageData as { height: number; contentHeight: number },
|
||||
)
|
||||
case ReactNativeToWebEvent.KeyboardDidHide:
|
||||
void this.application.handleMobileKeyboardDidHideEvent()
|
||||
break
|
||||
case ReactNativeToWebEvent.ReceivedFile:
|
||||
void this.application.handleReceivedFileEvent(
|
||||
|
||||
Reference in New Issue
Block a user