New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird Scroll when change text event fires on android 9 and 10 #384
Comments
Hey @taha200 Can you provide more information please, especially:
Most likely problem happens here - https://github.com/kirillzyusko/react-native-keyboard-controller/blob/main/src/components/KeyboardAwareScrollView/index.tsx#L197 You can try to comment out this line and see how it behaves. However for me it looks like there is a problem with memoization and it reads old layout from |
|
I commented out the line and nothing happens, issue still persists. @kirillzyusko |
@taha200 I can not reproduce this problem in example app (I've tested app on Pixel 6 Pro, API 28): Screen.Recording.2024-03-12.at.20.07.54.movCan you provide a minimal reproduction example, please? |
Let me know the library version please? |
I checked the same simulator and not getting this issue, but can you check on the physical device? |
This is example app from
I tested on a physical Xiaomi Redmi Note 5 Pro (Android 9) and Pixel 7 Pro (Android 14) and the issue is not reproducible. You've said it's reproducible on emulator - can you give me your emulator configuration? |
I think I should upgrade the library version, I will check it and let you know |
This issue is still persist in new version, can you help me out please? |
I think the onchangetext with usememo as you stated earlier is making the problems, I am getting the problem in 9 and 10 all devices. @kirillzyusko |
I used text input from react native paper |
@taha200 I'd like to help you, but without a proper reproduction example I can't. Please, provide minimal reproduction example and ideally the problem should be reproducible in environment that we both can have (i. e. Android Studio/Genymotion emulator - I can try to run example in device farm, but minimal available version there is Android 11). You can also try to debug this problem yourself. Two suspicious things are:
If you want to debug, then first of all I'd recommend you to understand which code calls P. S. do you use |
Posting for better visibility - tried to find Samsung A01 on AWS device farm but didn't find it there 😔 @taha200 do you use Samsung A10 or Samsung A01? |
I started to use this library because it has great feature to avail and maintain time to time, I encountered the issue that I am experiencing the weird scroll whenever I write a text in my text input and it is happening on the android OS 9 and 10
<KeyboardAwareScrollView contentContainerStyle={{ flexGrow: 1, backgroundColor: 'white' }} keyboardShouldPersistTaps={Platform.OS === 'ios' ? 'never' : 'always'} bounces={false} > <TextInput /> </KeyboardAwareScrollView>
Video Link:
https://wetransfer.com/downloads/2143ff1a64e1667cdb40042ba656fd4a20240312101324/dbc0bc
The text was updated successfully, but these errors were encountered: