question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FlatList `measureLayoutRelativeToContainingList` error

See original GitHub issue

I’m working on RN0.60+. Seems that something changed in react-native/Libraries/Lists/VirtualizedList.js and therefore this error shows up. This happens when:

import { FlatList as RNFlatList } from 'react-native';
import { FlatList } from 'react-native-gesture-handler';


<RNFlatList 
   renderScrollComponent={(props) => <ScrollView {...props} />} 
/>

//  OR

<FlatList />

I’m getting

undefined is not a function (near '...this._scrollRef.measureLayout...')

RNGH version: 1.3.0, I’m using a clone even with this repo.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

27reactions
Babar-Memoncommented, Feb 19, 2020

import FlatList from ‘react-native’

7reactions
sivakumar-cfcommented, Oct 23, 2019

Any update on this? happening after RN0.60+ update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the error when executing a FLATLIST? - Stack Overflow
List was just a regular React Native View with some small margin styles. It wasn't actually needed to use the ListItem component. Instead...
Read more >
React Native Flatlist Render Error VirtualizedList - Expo Forums
I am using flatlist to render post having video and text and i am getting following error:- Each item of the list consists...
Read more >
Web.VirtualListVsRN.VirtualList - Diff Checker
`FlatList` provides, e.g. for use with immutable data instead of plain arrays. ... suppresses an error found when Flow v0.111 was deployed. To....
Read more >
https://ewserver.di.unimi.it/gitlab/public_accessi...
publicModule.exports=void 0,r}}function m(r,e){return Error('Requiring module ... DrawerLayoutAndroid(){return r(d[7])},get FlatList(){return r(d[8])},get ...
Read more >
react-native-web@0.17.1 - Bundle Scanner
isArray(e),"FlatList: Encountered internal consistency error, expected each ... measureLayoutRelativeToContainingList=function(){var e=this;try{if(!this.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found