react-native-recyclerview-list
react-native-recyclerview-list copied to clipboard
Trouble selecting TextInput text in latest line items
It seems that TextInputs are not fully set up when in lines that are not in view when the list first appears.
Steps to reproduce:
- Add a
<TextInput value="hello"/>in the demo App.android.js file, as the first child below<TouchableNativeFeedback...><View..> - Run the example app
- Observe
hellois selectable in the first few rows being shown. Try long-tapping the word after tapping to have the TextInput receive focus. - Scroll the list down (1 screen down is enough, as the problem happens with items that are not visible on first load)
- Now place the cursor on the TextInput of any of these items and try selecting the text. Observe it's not possible.
H/t to @mzorz for investigating and compiling the steps above.
This is quite possibly a ReactNative issue but, as it is also seems to relate to how the views are initialized in the list it may make sense to investigate within the react-native-recyclerview-list project. Thanks for having a look!