Creating a standard ListView

The next step is to take the data received from the Graph API and render it into the view.

Right now, the feed array in the App component state contains 25 objects. Each object contains the following key-value pairs:

  • created_time: This is the date and time this post was made
  • id: This is an identifier that will let us grab the details of the post
  • story: This an optional post description that adds context, such as whether the post contained a location-based check-in, whether it was a shared memory or link, and so on
  • message: This an optional message that the user personally wrote for this post

Each post contains several edges, just like a node on a graph data structure. For Friends, we will access these following ...

Get React Native By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.