mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Summary: public This diff fixes two issues: 1) Makes it so that when a keyboard is displayed, all keys in that keyboard actually can be set as text. Previously you could display a Numeric keyboard and it would only allow entering numbers despite the keyboard having other keys like comma, plus, space, etc. a) This also allows any key entered on a physical keyboard to go through to the view even if not present on the Soft Input keyboard 2) Makes more robust our Filter setting in setMaxLength so that we only affect the InputFilter.LengthFilter if present instead of all. This works by creating a new KeyListener which will respond to getInputType as the KeyListener it is replacing (like a DigitsKeyListener for a numeric keyboard) but allow all characters when actually entering text. Reviewed By: andreicoman11 Differential Revision: D2880851 fb-gh-sync-id: fa5eb549a849d8f30c592d7eac48054ca6a75544