Creating a PostView

At the end of Chapter 5, Third Project - The Facebook Client, we created a FeedListRow component with a TouchableHighlight that fired the following function when pressed:

// Friends/app/components/FeedListRow/index.js 

  _navigateToPostView () { 

We will build a PostView component that our users will navigate to when the TouchableHighlight component is pressed in FeedListRow and replace the current login within this _navigfateToPostView function to handle that navigation.

This PostView component should, upon loading, look in AsyncStorage for this post's details and load them if it exists. If it does not, then it should make a request to the Facebook Graph API for the post's details and save ...

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.