在我的React native expo项目中,我面临着IOS模拟器和真实的IOS设备的问题。实际上我使用的是React native:“0.65.1”,我试了64. 0,和65. 2,但没有用。
错误为
TypeError: responder.scrollResponderScrollTo is not a function. (In 'responder.scrollResponderScrollTo({
x: x,
y: y,
animated: animated
})', 'responder.scrollResponderScrollTo' is undefined)
花了几个小时后,我发现这个问题将基于'react-native-keyboard-aware-scroll-view'这个npm,但我还没有在我的项目中使用它.那么我们如何解决这个问题
2条答案
按热度按时间yfwxisqw1#
这是一个open GitHub issue for react-native-keyboard-aware-scroll-view。
假设您使用的是
react-native 0.65.2
,那么您可以通过更新react-native-keyboard-aware-scroll-view version 0.9.5来修复此问题。mccptt672#
更新 /node_modules/@codler/react-native-keyboard-aware-scroll-view/lib/KeyboardAwareHOC.js 文件第244行中的以下代码。