Skip to content

Commit d5909a2

Browse files
committed
🐛 [app] 修复一个错误引用
1 parent 57229f2 commit d5909a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/screens/ChatScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class ChatScreen extends React.Component {
131131

132132
_scrollToBottom() {
133133
setTimeout(() => {
134-
this.refs.list && this.refs.list.scrollToIndex(0); // 因为使用了inverted属性因此滚到底部对于list的逻辑是滚到顶部
134+
this.refs.list && this.refs.list.scrollToIndex({ index: 0 }); // 因为使用了inverted属性因此滚到底部对于list的逻辑是滚到顶部
135135
}, 130);
136136
}
137137

0 commit comments

Comments
 (0)