From 795254838a5c02930e78167d1631c845137d5be6 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Tue, 19 Jan 2021 15:32:35 +0100 Subject: [PATCH] Fix getNode() warning https://github.com/osdnk/react-native-tab-view-viewpager-adapter/issues/20 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {