<?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: Testing Tester</title>
    <description>The latest articles on DEV Community by Testing Tester (@testing_tester_f06f30bf72).</description>
    <link>https://dev.to/testing_tester_f06f30bf72</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%2F3104933%2F48c76b26-0a5b-4158-a050-5b26495ee413.png</url>
      <title>DEV Community: Testing Tester</title>
      <link>https://dev.to/testing_tester_f06f30bf72</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/testing_tester_f06f30bf72"/>
    <language>en</language>
    <item>
      <title>Tracking Visible Sections in FlatList Using ViewabilityConfig in React Native</title>
      <dc:creator>Testing Tester</dc:creator>
      <pubDate>Tue, 29 Apr 2025 10:10:44 +0000</pubDate>
      <link>https://dev.to/testing_tester_f06f30bf72/tracking-visible-sections-in-flatlist-using-viewabilityconfig-in-react-native-3p63</link>
      <guid>https://dev.to/testing_tester_f06f30bf72/tracking-visible-sections-in-flatlist-using-viewabilityconfig-in-react-native-3p63</guid>
      <description>&lt;p&gt;I’m working with a FlatList in &lt;strong&gt;React Native&lt;/strong&gt; that renders different components. Each rendered component has JSX content which includes a label or section name (like a tag). I want to track which sections are visible on screen as the user scrolls.&lt;/p&gt;

&lt;p&gt;I’m using &lt;strong&gt;viewabilityConfig&lt;/strong&gt; with the FlatList, and I want to know:&lt;br&gt;
Is there a way to retrieve the corresponding section name or label of each visible item based on its index from the FlatList?&lt;/p&gt;

&lt;p&gt;I know that using &lt;strong&gt;viewabilityConfig&lt;/strong&gt; and the &lt;strong&gt;onViewableItemsChanged&lt;/strong&gt; method in FlatList, we can track the items rendered by the FlatList. However, is there a way to track specific sections or labels inside those items — sections that are rendered by the components returned from FlatList's renderItem?&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
