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._scrollRef.scrollTo is not a function #98

Open
smengl opened this issue Mar 25, 2018 · 13 comments
Open

this._scrollRef.scrollTo is not a function #98

smengl opened this issue Mar 25, 2018 · 13 comments

Comments

@smengl
Copy link

smengl commented Mar 25, 2018

Has anybody encountered this? I tracked it down to this line:

this.scroll.scrollToOffset({ offset, animated: false });
@react-native-guy
Copy link

I am getting this issue as well. I am using Dropdown component inside the FlatList component.

@HossamSamir
Copy link

@smengl can you provide a snippet to show where exactly you put that line please?

@kontinuity
Copy link

@HossamSamir There is no solution to this yet. Apparently the issue is in react-native code and requires changes there. However a workaround would be appreciated.

@victorkvarghese
Copy link

This issue occurs when i updated to latest version.
No problem with v 0.7.2 .. working great there!!

@n4kz any workaround or fixes??!

@degamer106
Copy link

degamer106 commented May 16, 2018

Also seeing this issue. Help!!

edit: Decided to use data.map(...) instead and didn't have any issue.

@MarcelBlockchain
Copy link

same issue here when using in a FlatList as ListHeaderComponent. When putting it above the FlatList as normal component, it works fine!

@Hektar90
Copy link

Still an issue....not working inside a FlatList Item

@pohsiu
Copy link

pohsiu commented Aug 10, 2018

TypeError: this._scrollRef.flashScrollIndicators is not a function at VirtualizedList.flashScrollIndicators (VirtualizedList.js:391) at VirtualizedList.proxiedMethod (createPrototypeProxy.js:44) at FlatList.flashScrollIndicators (FlatList.js:399) at FlatList.proxiedMethod (createPrototypeProxy.js:44) at index.js:308 at AnimatedValue.js:295 at TimingAnimation.__debouncedOnEnd (Animation.js:57) at TimingAnimation.onUpdate (TimingAnimation.js:130) at _callTimer (JSTimers.js:154) at Object.callTimers (JSTimers.js:405)

TypeError: this._scrollRef.scrollTo is not a function at VirtualizedList.scrollToOffset (VirtualizedList.js:369) at VirtualizedList.proxiedMethod (createPrototypeProxy.js:44) at FlatList.scrollToOffset (FlatList.js:377) at FlatList.proxiedMethod (createPrototypeProxy.js:44) at Dropdown.resetScrollOffset (index.js:466) at Dropdown.proxiedMethod (createPrototypeProxy.js:44) at index.js:295 at JSTimers.js:256 at _callTimer (JSTimers.js:152) at Object.callTimers (JSTimers.js:405)

Same issue,

@andyngdz
Copy link

Getting the same issue. Please help

@dima11221122
Copy link

I've just commented it
scrollToOffset({ offset, animated: false });

@NareshNama
Copy link

not working inside a Flatlist Item .please help
simulator screen shot - iphone 6 - 2018-10-10 at 14 46 21

@rohitrkbe
Copy link

I am facing the same issue if using inside a FlatList. Did anyone found any workaround to this ?

@RamyEl-basyouni
Copy link

Any updates on this! I am trying to get reference of nested flatLists but always getting
this._scrollRef.scrollTo is not a function
here is my code:
https://gist.github.com/RamyEl-basyouni/893fa53bc94ce22f85c6b5a26f8e12b9

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