mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 02:08:34 +08:00
Refactor UIManager view manager accesses
Summary: Replaced each view manager access with a getViewManager() function call. This will later be used to lazily load view manager classes by allowing java to avoid sending the entire list of view managers to JS. Reviewed By: QueryConnectionException Differential Revision: D9695788 fbshipit-source-id: 949858aa2f0b0b00b68e260461ba8f1d085cf07f
This commit is contained in:
committed by
Facebook Github Bot
parent
471e8c168a
commit
aac7c4d5d2
@@ -42,7 +42,8 @@ function focusTextInput(textFieldID: ?number) {
|
||||
} else if (Platform.OS === 'android') {
|
||||
UIManager.dispatchViewManagerCommand(
|
||||
textFieldID,
|
||||
UIManager.AndroidTextInput.Commands.focusTextInput,
|
||||
UIManager.getViewManagerConfig('AndroidTextInput').Commands
|
||||
.focusTextInput,
|
||||
null,
|
||||
);
|
||||
}
|
||||
@@ -62,7 +63,8 @@ function blurTextInput(textFieldID: ?number) {
|
||||
} else if (Platform.OS === 'android') {
|
||||
UIManager.dispatchViewManagerCommand(
|
||||
textFieldID,
|
||||
UIManager.AndroidTextInput.Commands.blurTextInput,
|
||||
UIManager.getViewManagerConfig('AndroidTextInput').Commands
|
||||
.blurTextInput,
|
||||
null,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user