Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.scrollView.getNode is not a function #19

Open
lalithaeswar opened this issue Jan 3, 2022 · 0 comments
Open

this.scrollView.getNode is not a function #19

lalithaeswar opened this issue Jan 3, 2022 · 0 comments

Comments

@lalithaeswar
Copy link

Describe the bug
this.scrollView.getNode is not a function

To Reproduce
Steps to reproduce the behavior:
1.click on tabview
2. getting issue in this method
this.scrollView.getNode().scrollTo
goToPage(pageNumber) {
const offset = pageNumber * this.state.containerWidth;
if (this.scrollView) {
this.scrollView.getNode().scrollTo({ x: offset, y: 0, animated: !this.props.scrollWithoutAnimation, });
}
const currentPage = this.state.currentPage;
this.updateSceneKeys({
page: pageNumber,
callback: this._onChangeTab.bind(this, currentPage, pageNumber),
});
},

Version:
"react": "17.0.2",
"react-native": "0.66.3",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant