mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-22 11:35:01 +08:00
Prettier React Native Libraries
Reviewed By: sahrens Differential Revision: D7961488 fbshipit-source-id: 05f9b8b0b91ae77f9040a5321ccc18f7c3c1ce9a
This commit is contained in:
committed by
Facebook Github Bot
parent
1e2de71290
commit
d01ab66b47
@@ -4,12 +4,15 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow
|
||||
*
|
||||
* This class is responsible for coordinating the "focused"
|
||||
* state for TextInputs. All calls relating to the keyboard
|
||||
* should be funneled through here
|
||||
*
|
||||
* @format
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const Platform = require('Platform');
|
||||
@@ -18,7 +21,7 @@ const UIManager = require('UIManager');
|
||||
const inputs = new Set();
|
||||
|
||||
const TextInputState = {
|
||||
/**
|
||||
/**
|
||||
* Internal state
|
||||
*/
|
||||
_currentlyFocusedID: (null: ?number),
|
||||
@@ -45,7 +48,7 @@ const TextInputState = {
|
||||
UIManager.dispatchViewManagerCommand(
|
||||
textFieldID,
|
||||
UIManager.AndroidTextInput.Commands.focusTextInput,
|
||||
null
|
||||
null,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -65,7 +68,7 @@ const TextInputState = {
|
||||
UIManager.dispatchViewManagerCommand(
|
||||
textFieldID,
|
||||
UIManager.AndroidTextInput.Commands.blurTextInput,
|
||||
null
|
||||
null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user