Skip to content

Commit 3d7dfb1

Browse files
author
石破天惊
committed
2.0.22
修正:iOS键盘遮挡处理问题。
1 parent bd8b420 commit 3d7dfb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ios/SpringScrollView/STSpringScrollViewManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ - (UIView *)view
4848
[self.bridge.uiManager addUIBlock:
4949
^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, __kindof UIView *> *viewRegistry){
5050
STSpringScrollView *view = viewRegistry[reactTag];
51-
[view scrollToOffset:CGPointMake(offsetX, offsetY) animated:animated];
51+
[view.scrollView setContentOffset:CGPointMake(offsetX, offsetY) animated:animated];
5252
}];
5353
}
5454

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-spring-scrollview",
3-
"version": "2.0.21",
3+
"version": "2.0.22",
44
"description": "An cross-platform (iOS & Android) spring ScrollView",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)