Closed claudiozam closed 3 years ago
I also got the same error
Me too.
Fix on @codler/react-native-keyboard-aware-scroll-view 2.0
@codler/react-native-keyboard-aware-scroll-view 2.0
did't fixed the issue
@eggybot and all others still facing this issue on NativeBase v2: define a resolution strategy in your package.json
to force usage of https://github.com/codler/react-native-keyboard-aware-scroll-view/releases/tag/v2.0.0
"resolutions": { "native-base/@codler/react-native-keyboard-aware-scroll-view": "2.0.0" }
@AndroidGuyDD thank you man life saver
@AndroidGuyDD Hi, how can I run that "resolutions", npm install didn't work for me :(
@jaonystudio Yes, this worked with yarn only so far. But you're lucky. npm just released a similar functionality called overrides
in their latest release 8.3.0
@AndroidGuyDD I tried using this one in package.json
but no luck
"overrides": { "native-base": { "@codler/react-native-keyboard-aware-scroll-view": "2.0.1" } },
this should work perfectly :
cd node_modules/native-base/ npm i @codler/react-native-keyboard-aware-scroll-view@2.0.0
@AndroidGuyDD I tried using this one in
package.json
but no luck"overrides": { "native-base": { "@codler/react-native-keyboard-aware-scroll-view": "2.0.1" } },
try this :
cd node_modules/native-base/ npm i @codler/react-native-keyboard-aware-scroll-view@2.0.0
@eggybot and all others still facing this issue on NativeBase v2: define a resolution strategy in your
package.json
to force usage of https://github.com/codler/react-native-keyboard-aware-scroll-view/releases/tag/v2.0.0
"resolutions": { "native-base/@codler/react-native-keyboard-aware-scroll-view": "2.0.0" }
You should update package.json
file from /node_modules/native-base
folder:
"resolutions": {
"native-base/@codler/react-native-keyboard-aware-scroll-view": "2.0.1"
},
"version": "2.15.2",
"license": "Apache-2.0",
"private": false,
"dependencies": {
"@codler/react-native-keyboard-aware-scroll-view": "1.0.1",
"@react-native-community/datetimepicker": "^3.0.2",
...
Describe the bug
Focus on a field on iOS throw this error:
TypeError: responder.scrollResponderScrollTo is not a function
Steps to reproduce the behaviour:
Press on a text Input to open the keyboard
Expected behaviour
Focus on a field and scroll to that position
Platform
React: 17.0.2 React Native: 0.65.1 NativeBase: 2.15.2 React-native-keyboard-aware-scroll-view: 1.0.1
Device: iPhone OS: iOS14.5
package.json