APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

TypeError: responder.scrollResponderScrollTo is not a function. (In 'responder.scrollResponderScrollTo #508

Closed Etaliya closed 2 years ago

Etaliya commented 2 years ago

When I tried to KeyboardAwareScrollView with TextInput simulator_screenshot_E4C3359A-1C46-4A34-8299-6F052D9DC3A6

Etaliya commented 2 years ago

I have found a temporary solution. add this in package.json file

"react-native-keyboard-aware-scroll-view": "github:APSL/react-native-keyboard-aware-scroll-view#pull/501/head",

ksielyov commented 2 years ago

Why I should use it? Is this a bug in a library and we should to wait update?

ramsesDeco commented 2 years ago

yes @ksielyov , there is a bug for RN v0.65.*, you shouldn't wait since the bug has been there for at least for 1 month, I really dont know why they don't fix it, but I will share you another solution, using patch-package, https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/494#issuecomment-900089166

dariuxmx commented 2 years ago

In my case, I resolved using these props:

<KeyboardAwareScrollView
  enableOnAndroid={true}
  keyboardShouldPersistTaps={"handled"}
  enableResetScrollToCoords={false}
  >
barmola commented 2 years ago

Thankyou @dariuxmx it worked for me

In my case, I resolved using these props:

<KeyboardAwareScrollView
  enableOnAndroid={true}
  keyboardShouldPersistTaps={"handled"}
  enableResetScrollToCoords={false}
  >
geroale commented 2 years ago

Same issue here

dgreasi commented 2 years ago

Can confirm the issue with the following:

"react": "17.0.2",
"react-native": "0.65.1",
"react-native-keyboard-aware-scroll-view": "^0.9.4",
mitesh-db commented 2 years ago

I have not used react-native-keyboard-aware-scroll-view, even though I'm getting this error, any luck?

n10ty commented 2 years ago

I have not used react-native-keyboard-aware-scroll-view, even though I'm getting this error, any luck?

Probably, you using some other component, that depends on react-native-keyboard-aware-scroll-view. Try to search in node_modules.

karladler commented 2 years ago

I have not used react-native-keyboard-aware-scroll-view, even though I'm getting this error, any luck?

Probably, you using some other component, that depends on react-native-keyboard-aware-scroll-view. Try to search in node_modules.

try:

$ yarn why react-native-keyboard-aware-scroll-view

mitesh-db commented 2 years ago

Oh got it guys thanks, Actually this was the path ...

node_modules > @codler > react-native-keyboard-aware-scroll-view > KeyboardAwareHOC.js

nithinyell commented 2 years ago

Can confirm the issue with the following:

"react": "17.0.2",
"react-native": "0.65.1",
"react-native-keyboard-aware-scroll-view": "^0.9.4",

@dgreasi Yes this happened with this configuration

iOS 15 resolved with

<KeyboardAwareScrollView
  enableOnAndroid={true}
  keyboardShouldPersistTaps={"handled"}
  enableResetScrollToCoords={false}
  >
dgreasi commented 2 years ago

Can confirm the issue with the following:

"react": "17.0.2",
"react-native": "0.65.1",
"react-native-keyboard-aware-scroll-view": "^0.9.4",

@dgreasi Yes this happened with this configuration

iOS 15 resolved with

<KeyboardAwareScrollView
  enableOnAndroid={true}
  keyboardShouldPersistTaps={"handled"}
  enableResetScrollToCoords={false}
  >

This approach works without crashing, but it results to a different keyboard behavior from what i need in my case.

JeffPatricio commented 2 years ago

I have found a temporary solution. add this in package.json file

"react-native-keyboard-aware-scroll-view": "github:APSL/react-native-keyboard-aware-scroll-view#pull/501/head",

This worked for me, I added a line to package.json and ran a 'yarn' command to install over the other version.

anboia commented 2 years ago

yes @ksielyov , there is a bug for RN v0.65.*, you shouldn't wait since the bug has been there for at least for 1 month, I really dont know why they don't fix it, but I will share you another solution, using patch-package, #494 (comment)

same issue https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/494 https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/504 https://github.com/APSL/react-native-keyboard-aware-scroll-view/pull/501

janet-rivas commented 2 years ago

I have found a temporary solution. add this in package.json file "react-native-keyboard-aware-scroll-view": "github:APSL/react-native-keyboard-aware-scroll-view#pull/501/head",

This worked for me, I added a line to package.json and ran a 'yarn' command to install over the other version.

I have the same issue in RN 0.66 This work and this works