-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
null is not an object (evaluating 'this._listRef.scrollToIndex') #15968
Comments
@facebook-github-bot needs-repro |
Can you reproduce the issue using Snack? This step is necessary for people to be able to see and debug the issue being reported. See "How to Contribute". |
@charpeni Does this really need a repo when it appears in the error logs of Bugsnag? I'm just wondering, when I take a look into react-native/Libraries/Lists/FlatList.js Line 395 in d1372fa
this._listRef .
But this check is missing in react-native/Libraries/Lists/FlatList.js Line 342 in d1372fa
I guess there is a reason why we need to check for |
Also seeing this error pop up in my Android crash logs. |
@facebook-github-bot no-template |
Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more. |
TypeError: null is not an object (evaluating 'this._listRef.scrollToOffset') I have same issue |
@DeividVeloso did u solved it? |
Not yet, some times ocorre. Thanks |
Since switching from ListView to FlatList we're getting some errors like this:
They happen rarely, but I could confirm that this also happened on one of my devices (OnePlus 3 with Android 7). The app shutted down after I've tried to open a view with a FlatList in it. Sadly I wasn't able to reproduce it.
This is the full output:
Due to our logs it only happens on Android devices. We are on React Native 0.46 and react-navigation for our routes. Maybe the view is destroyed while RN tries to access
this._listRef
?The text was updated successfully, but these errors were encountered: