[add] support for Keyboard API

Close #625
This commit is contained in:
Unknown
2017-09-07 01:22:55 +02:00
committed by Nicolas Gallagher
parent 26bdf44a4c
commit b23a4f55dc
3 changed files with 27 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* Copyright (c) 2016-present, Nicolas Gallagher.
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule Keyboard
* @flow
*/
import dismissKeyboard from '../../modules/dismissKeyboard';
const Keyboard = {
addListener() {},
dismiss() {
dismissKeyboard();
},
removeAllListeners() {},
removeListener() {}
};
export default Keyboard;
+2
View File
@@ -20,6 +20,7 @@ import {
Easing,
I18nManager,
InteractionManager,
Keyboard,
Linking,
NetInfo,
PanResponder,
@@ -85,6 +86,7 @@ const ReactNative = {
Easing,
I18nManager,
InteractionManager,
Keyboard,
Linking,
NetInfo,
PanResponder,
+1
View File
@@ -14,6 +14,7 @@ export { default as Clipboard } from './apis/Clipboard';
export { default as Dimensions } from './apis/Dimensions';
export { default as Easing } from 'animated/lib/Easing';
export { default as I18nManager } from './apis/I18nManager';
export { default as Keyboard } from './apis/Keyboard';
export { default as InteractionManager } from './apis/InteractionManager';
export { default as Linking } from './apis/Linking';
export { default as NetInfo } from './apis/NetInfo';