mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
Add phone-pad keyboard
Summary: With the numeric keyboard now being an actual numeric keyboard (before it was actually phone-pad), we need a proper phone-pad keyboard as well. public Reviewed By: dmmiller Differential Revision: D2830707 fb-gh-sync-id: 80a1d314eac730e691de73a31342c014a2fa5ba6
This commit is contained in:
committed by
facebook-github-bot-6
parent
ebf42d9813
commit
25c3dd140f
@@ -60,6 +60,7 @@ public class ReactTextInputManager extends
|
||||
|
||||
private static final String KEYBOARD_TYPE_EMAIL_ADDRESS = "email-address";
|
||||
private static final String KEYBOARD_TYPE_NUMERIC = "numeric";
|
||||
private static final String KEYBOARD_TYPE_PHONE_PAD = "phone-pad";
|
||||
private static final InputFilter[] EMPTY_FILTERS = new InputFilter[0];
|
||||
|
||||
@Override
|
||||
@@ -278,6 +279,8 @@ public class ReactTextInputManager extends
|
||||
flagsToSet = INPUT_TYPE_KEYBOARD_NUMBERED;
|
||||
} else if (KEYBOARD_TYPE_EMAIL_ADDRESS.equalsIgnoreCase(keyboardType)) {
|
||||
flagsToSet = InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS | InputType.TYPE_CLASS_TEXT;
|
||||
} else if (KEYBOARD_TYPE_PHONE_PAD.equalsIgnoreCase(keyboardType)) {
|
||||
flagsToSet = InputType.TYPE_CLASS_PHONE;
|
||||
}
|
||||
updateStagedInputTypeFlag(
|
||||
view,
|
||||
|
||||
Reference in New Issue
Block a user