Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.3 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.3 KB

Example App

Setup

  • Run yarn on project root to install required Javascript dependencies
  • Go to example/ios/ and run pod install to install required native iOS dependencies
  • To get the example running you need to have (see how to get config files):
    • google-services.json in your android/app/ (for the example app, that will be in node_modules/react-native-test-app/)
    • GoogleService-Info.plist in node_modules/react-native-test-app/ios/ReactTestApp and linked in XCode by dragging it to the file tree.
  • create src/confgi/config.js with the following content:
export default {
  webClientId: 'your-web-client-id.apps.googleusercontent.com',
};

Running

  • Start Metro bundler with yarn start
  • iOS: open the project in Xcode (run xed ios in the example/ directory) and run the app
  • Android: open the build.gradle file in example/android/ directory and run the app

Unlinking example app from a Google Account

Enabling access to the People API

Go to https://console.cloud.google.com/apis/api/people.googleapis.com/metrics?project=abcd-1234