react-native-web
Version:
React Native for Web
31 lines (29 loc) • 653 B
Flow
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import dismissKeyboard from '../../modules/dismissKeyboard';
// in the future we can use https://github.com/w3c/virtual-keyboard
const Keyboard = {
isVisible(): boolean {
return false;
},
addListener(): {|
remove: () => void
|} {
return {
remove: () => {}
};
},
dismiss() {
dismissKeyboard();
},
removeAllListeners() {},
removeListener() {}
};
export default Keyboard;