This content originally appeared on DEV Community and was authored by Hatta Food
I have one question now is it limitation to React-Native orr.. it is not possible by any means
Problem:
I have nested flatList
How to apply or get the ItemLayout orr viewabilityConfigCallbackPairs
so that i can perform certain actions within that child
renderItem
/>
const renderItem = ()=>{
onScroll={() => {
console.log('onScroll =>');
}}
onLayout={event => {
console.log('onLayout =>', event.nativeEvent.layout);
}}
getItemLayout={(data, index) => {
return {length: 100, offset: 100 * index, index};
}}
viewabilityConfigCallbackPairs={
viewabilityConfigCallbackPairs.current
}/>
This content originally appeared on DEV Community and was authored by Hatta Food

Hatta Food | Sciencx (2024-07-25T21:37:02+00:00) viewabilityConfigCallbackPairs. Retrieved from https://www.scien.cx/2024/07/25/viewabilityconfigcallbackpairs/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.