TextInput looses focus when wrapped in a HOC #22324
Labels
Component: Text
Component: TextInput
Related to the TextInput component.
Resolution: Locked
This issue was locked by the bot.
Environment
React Native Environment Info:
Description
I wrote a HOC contains the following code:
I used a
TextInput
component as a wrapped component and it seems when I'm passing the following prop asonChangeText
it loses the focus everytime I enter a character.It worked well for the second
TextInput
, but for the one that I've used with HOC. It's different.Reproducible Demo
Checkout the following snack:
https://snack.expo.io/@ahangari24/d3JhcH
The text was updated successfully, but these errors were encountered: