react-native-gesture-handler: FlatList `measureLayoutRelativeToContainingList` error
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.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 16
- Comments: 17 (2 by maintainers)
import FlatList from ‘react-native’
Any update on this? happening after RN0.60+ update.
Same issue after RN0.61.5 using react-native and react-native-gesture-handler
When using two nested FlatLists (imported from ‘react-native-gesture-handler’), I got the same error. But after changing the inner FlatList to ScrollView, the error disappeared.
Yes, I have same issues when using two nested FlatList