mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
React edit text changes (#25964)
Summary: Changing showSoftKeyboard and hideSoftKeyboard to be protected, as we need this change for an internal control that extends ReactEditText. ## Changelog [Android] [Changed] - part of our react native platform, we have a control that extends ReactEditText and we need to be able to override these 2 methods. Pull Request resolved: https://github.com/facebook/react-native/pull/25964 Test Plan: The change has been in Microsoft's branch of RN for almost 2 years, and since it's a relatively small change we've done a quick sanity check in RNTester prior to this PR, making sure the TextInput page loads fine and it's functional. Differential Revision: D16686878 Pulled By: cpojer fbshipit-source-id: 63035ee9c58e93bc0fa40e5bec318df05322c6c5
This commit is contained in:
committed by
Facebook Github Bot
parent
4c11b55053
commit
c0c5e2276d
@@ -484,11 +484,11 @@ public class ReactEditText extends EditText {
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean showSoftKeyboard() {
|
||||
protected boolean showSoftKeyboard() {
|
||||
return mInputMethodManager.showSoftInput(this, 0);
|
||||
}
|
||||
|
||||
private void hideSoftKeyboard() {
|
||||
protected void hideSoftKeyboard() {
|
||||
mInputMethodManager.hideSoftInputFromWindow(getWindowToken(), 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user