Skip to content

Commit 2b0d681

Browse files
authored
docs: known limitation with blurring the input (#785)
# Summary Tapping outside of `EnrichedTextInput` does not blur it on mobile. This is a RN limitation and was mentioned here #184 . Provided mention about that in the docs
1 parent c070294 commit 2b0d681

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/docs/misc/known-limitations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ We may add support for more tags and related functionality over time - see the
3232
not supported yet, the best way to let us know is to open a
3333
[GitHub issue](https://github.com/software-mansion/react-native-enriched-html/issues)
3434
in our repo.
35+
36+
## No global blur support on mobile
37+
38+
On mobile, you can use `Keyboard.dismiss()` and `keyboardShouldPersistTaps` to blur
39+
the React Native's `TextInput` on taps outside of it. This doesn't work
40+
with `EnrichedTextInput`. This is a limitation of React Native itself, not
41+
something specific to this library: React Native doesn't expose
42+
`TextInputState` publicly, so we can't register our input in the React Native state.

0 commit comments

Comments
 (0)