kirillzyusko / react-native-keyboard-controller

Keyboard manager which works in identical way on both iOS and Android
https://kirillzyusko.github.io/react-native-keyboard-controller/
MIT License
1.38k stars 55 forks source link

TextInputs' are not pressable in the KeyboardStickyView example after scroll. #457

Closed NodoPopkhadze closed 1 month ago

NodoPopkhadze commented 1 month ago

Describe the bug In the AwareScrollViewStickyFooter example of the react-native-keyboard-cotroller, TextInput components become unresponsive after scrolling when using Fabric architecture on Android real devices. This issue also extends to other touchable components in my project.

https://github.com/kirillzyusko/react-native-keyboard-controller/assets/47716245/9186ba3c-f7ac-414b-83ac-5d3e692ca691

To Reproduce Steps to reproduce the behavior:

  1. Start the FabricExample application.
  2. Navigate to the "Aware scroll view sticky footer" screen
  3. Scroll down. 4.Attempt to interact with any TextInput component

Expected behavior TextInput components should remain responsive to user input regardless of scrolling

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Using react-native-gesture-handler components restores responsiveness for all touchable components, including TextInputs. However, when a TextInput component from react-native-gesture-handler is used, touching it to input text prevents scrolling of the screen.

I also suspect this is a react-native-reanimated's bug.

kirillzyusko commented 1 month ago

Hello @NodoPopkhadze 👋

Actually I think it's a react-native-reanimated bug. I've tried to remove all implementation from KeyboardAwareScrollView and keep only KeyboardStickyView (and bug is still present).

But If I remove style={styles} from KeyboardStickyView - suddenly everything starts to work 🤔

I'll try to provide a reproducible example without keyboard-controller to reanimated repository - but if you want you also can go ahead and provide a reproduction example to reanimated repository 🙃

NodoPopkhadze commented 1 month ago

Hey @kirillzyusko,

I’ve created an issue in the reanimated repository here. Hopefully, they will respond

kirillzyusko commented 1 month ago

@NodoPopkhadze awesome ❤️ Thank you very much! 😊

The only thing is that I would make in bold that issue is reproducible only on real device (in REA issue).

Can I close this issue? (since we figured out that it's reanimated bug)

NodoPopkhadze commented 1 month ago

@kirillzyusko Updated.

Yes you can close the issue, since the bug is related to reanimated :)

Thank you.

kirillzyusko commented 1 month ago

@NodoPopkhadze thank you ❤️ Closing this issue 🙌