<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hatta Food</title>
    <description>The latest articles on DEV Community by Hatta Food (@hatta_food_6b1eee94b41c7e).</description>
    <link>https://dev.to/hatta_food_6b1eee94b41c7e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1840790%2Fce15b345-9b60-4516-9dc8-7852268781e5.png</url>
      <title>DEV Community: Hatta Food</title>
      <link>https://dev.to/hatta_food_6b1eee94b41c7e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hatta_food_6b1eee94b41c7e"/>
    <language>en</language>
    <item>
      <title>viewabilityConfigCallbackPairs</title>
      <dc:creator>Hatta Food</dc:creator>
      <pubDate>Thu, 25 Jul 2024 21:37:02 +0000</pubDate>
      <link>https://dev.to/hatta_food_6b1eee94b41c7e/viewabilityconfigcallbackpairs-1e3i</link>
      <guid>https://dev.to/hatta_food_6b1eee94b41c7e/viewabilityconfigcallbackpairs-1e3i</guid>
      <description>&lt;p&gt;I have one question now is it limitation to React-Native orr.. it is not possible by any means&lt;/p&gt;

&lt;p&gt;Problem:&lt;br&gt;
I have nested flatList&lt;/p&gt;

&lt;p&gt;How to apply or get the ItemLayout orr viewabilityConfigCallbackPairs&lt;/p&gt;

&lt;p&gt;so that i can perform certain actions within that child&lt;/p&gt;

&lt;p&gt;
renderItem&lt;br&gt;
/&amp;gt;&lt;br&gt;
const renderItem = ()=&amp;gt;{&lt;br&gt;

onScroll={() =&amp;gt; {&lt;br&gt;
              console.log('onScroll =&amp;gt;');&lt;br&gt;
            }}&lt;br&gt;
            onLayout={event =&amp;gt; {&lt;br&gt;
              console.log('onLayout =&amp;gt;', event.nativeEvent.layout);&lt;br&gt;
            }}&lt;br&gt;
            getItemLayout={(data, index) =&amp;gt; {&lt;br&gt;
              return {length: 100, offset: 100 * index, index};&lt;br&gt;
            }}&lt;br&gt;
            viewabilityConfigCallbackPairs={&lt;br&gt;
              viewabilityConfigCallbackPairs.current&lt;br&gt;
            }/&amp;gt;&lt;br&gt;
&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
