You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import {
|
|
invoke
|
|
} from 'uni-core/service/bridge'
|
|
|
|
import {
|
|
onMethod
|
|
} from '../../platform'
|
|
|
|
let callback
|
|
|
|
onMethod('onKeyboardHeightChange', res => {
|
|
if (callback) {
|
|
invoke(callback, res)
|
|
}
|
|
})
|
|
|
|
export function onKeyboardHeightChange (callbackId) {
|
|
callback = callbackId
|
|
}
|
|
|