diff --git a/src/index.tsx b/src/index.tsx index bd42cde..916e829 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -63,7 +63,7 @@ export default class ViewPagerBackend extends React.Component< private jumpToIndex = (index: number) => { // If the index changed, we need to trigger a tab switch // this.isSwipeGesture.setValue(FALSE); - this.ref.current.getNode().setPage(index); + this.ref.current.setPage(index); }; private jumpTo = (key: string) => {