JS: add oldBottomMargin, oldHeight & bottomMargin

This commit is contained in:
王劲鹏
2021-03-30 11:30:59 +08:00
committed by osborn
parent ad29f284cd
commit f16b8b8125
6 changed files with 26 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
import { BridgeContext } from "../runtime/global"
export function keyboard(context: BridgeContext) {
return {
subscribe: (callback: (data: { height: number }) => void) => {
subscribe: (callback: (data: { oldBottomMargin: number, oldHeight: number, bottomMargin: number, height: number }) => void) => {
return context.callNative('keyboard', 'subscribe', context.function2Id(callback)) as Promise<string>
},
unsubscribe: (subscribeId: string) => {