Skip to content

Commit c558f98

Browse files
authored
fix(js): setPage call to long (#412)
* fix setPage call to long It's too long when call setPage method if is running another animations. * fix: change `setTimeout` to `setImmediate` fix: change `setTimeout` to `setImmediate`
1 parent 634fcfc commit c558f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LazyPagerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class LazyPagerViewImpl<ItemT> extends React.Component<
154154
})
155155
);
156156
// Send paging command.
157-
requestAnimationFrame(() => {
157+
setImmediate(() => {
158158
UIManager.dispatchViewManagerCommand(
159159
findNodeHandle(this),
160160
animated

0 commit comments

Comments
 (0)