Replies: 4 comments
-
Meanwhile, I'm preparing a draft PR 🙂 |
Beta Was this translation helpful? Give feedback.
-
Would be good to see this officially supported / fixed. We hit a similar issue and patched it in as a new |
Beta Was this translation helpful? Give feedback.
-
That's my PR - facebook/react-native#47671. I am working on it opening asap. |
Beta Was this translation helpful? Give feedback.
-
The PR (facebook/react-native#47671) has been opened for review 🙂 |
Beta Was this translation helpful? Give feedback.
-
I’m tackling an issue IOU - Empty suggestion pop-up appears below numeric keyboard, preventing number input #50057 at Expensify. Here’s a quick summary:
This issue affects the TextInput on iPads only. There is an amount input with a custom numeric keyboard on the display. When the user interacts with it a blocking view appears. We refer to it as the “suggestion pop-up” (or “shortcuts” in settings). It appears after each interaction with the input field. Although it disappears once the user taps it, the pop-up intercepts clicks on buttons, requiring users to tap twice to interact with the app.
Unfortunately, React Native doesn’t currently provide a built-in way to hide this suggestion pop-up programmatically.
However, iOS does offer a native property for UITextField called
inputAssistantItem
. According to the documentation, we can hide the "shortcuts" by setting theleadingBarButtonGroups
andtrailingBarButtonGroups
properties to empty arrays.I propose adding a new property for TextInput in React Native, which would set these native properties to empty arrays. This new property could be called
disableInputAssistant
ordisableKeyboardShortcuts
and would be aboolean
.Current behaviour
Bug.mp4
As you can see the user cannot interact with the input freely.
Changes
Native.mp4
After applying these native props the user taps on the software buttons normally. Moreover, it allows us to manage the redo & undo buttons.
Beta Was this translation helpful? Give feedback.
All reactions