O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GraphMethods

The goal of this file is to create some commonly used methods that interact with the Facebook Graph API and export them so that we can use them in different components throughout the app.

Like the utility files we created for Expenses, this graphMethods file should live inside a utils folder, nested inside an app folder that rests at the root level of our project:

Create this utilities file and have it do the following things:

  • Create a function called makeSingleGraphRequest that accepts a request as an argument, creates a new instance of GraphRequestManager, passes in the request to GraphRequestManager, and then calls the start ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required