Replies: 7 comments
-
Plz reply sir |
Beta Was this translation helpful? Give feedback.
-
Hello @ethnbyte, Sorry for the delay in getting back to you; I've been really busy lately. I believe the simplest option could be using autoFocus, as it should automatically move focus to the component when it appears. Alternatively, you could try maintaining focus on the previous element, but it's difficult to say for certain without an example. The behavior can vary significantly between platforms. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @ArturKalach , first of all, thank you for the reply and for creating this awesome library!. I’ve noticed a bug while using react-native-external-keyboard in my app. I’ve added pagination to a FlatList, so when I scroll and reach the end, it loads more items. But during the loading of new data, keyboard navigation (up/down arrow keys) stops working. Here’s a video showing the issue:5_6062190830423118275.mp4Setup:React Native version: 0.77.0 react-native-external-keyboard version: 0.5.4 Platform: Android (Emulator + Release build — same issue) Steps to Reproduce:
Expected behavior: Keyboard navigation should work even while loading new data. Actual behavior: Navigation stops responding during pagination loading. Let me know if there's a workaround or if this can be fixed in the library. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Kindly take a look, sir |
Beta Was this translation helpful? Give feedback.
-
Hello @ethnbyte, I just verified the issue you described, and it has been reproduced on both FlatList and ScrollView. Unfortunately, this behavior is related to the default rendering system of React Native, where all UI/JS events are blocked during rendering. You can observe this behavior by logging the onPress event of the default Pressable. Presses will be ignored while the rest of the list is still rendering. This library uses the default React Native styling system and will behave similar to standard React Native code. The only viable solution is to use native code to handle styles directly on the native side. However, this approach may require additional knowledge of the React Native layout system (Yoga) and code generation (codegen). I believe there are a couple of options to resolve the issue:
Honestly, this is a tricky issue related to React Native, and I don’t plan to work on it further. I would suggest trying different libraries with list rendering optimizations. Alternatively, you can use a loader or skeleton screen to mask the delays. Regards, |
Beta Was this translation helpful? Give feedback.
-
I just checked how |
Beta Was this translation helpful? Give feedback.
-
Thanks for the follow-up, @ArturKalach! 🙌 I haven’t tried @shopify/flash-list yet, but it sounds promising — I’ll definitely test it out and see if it resolves the keyboard input issue during pagination. Appreciate you taking the time to look into this again and suggest a possible solution. Will share results here once I’ve tested it 💯 Thanks again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I’m using react-native-external-keyboard with a FlatList, and I ran into a small issue.
When I load more items (like in pagination), the keyboard focus jumps back to the top instead of staying where it was before. So if I’m at item 10 and load more data, the focus goes back to item 0 instead of continuing from item 10.
Is there any way to keep the focus on the last item after loading more? Or maybe a feature that could help with this?
Thanks a lot! Love the library — it’s super helpful!
Beta Was this translation helpful? Give feedback.
All reactions