Socket
Socket
Sign inDemoInstall

react-native-firebase-perf-apollo-link

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-firebase-perf-apollo-link

React-Native Firebase Performance Monitoring for Apollo GraphQL Client using Apollo Link


Version published
Weekly downloads
25
increased by177.78%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Firebase Performance Monitoring for Apollo GraphQL Client using Apollo Link (for Apollo Client 3)

Forked from: https://github.com/KirioXX/apollo-link-react-native-firebase-perf (for Apollo Client < 2)) Based on: https://github.com/Gerrel/apollo-link-firebase-performance-monitoring

Installing / Getting Started

npm install react-native-firebase-perf-apollo-link

Or:

yarn add react-native-firebase-perf-apollo-link

Prerequisites

  • Apollo Client: ^3
  • @react-native-firebase/app: ^7.2.1
  • @react-native-firebase/perf: ^7.1.4
  • react-native: ^0.62.2
// Add import for Apollo Link
import { ApolloLink } from 'apollo-link';

// Add import for @react-native-firebase
import perf from '@react-native-firebase/perf';

// Add the import for this library
import createFPMLink from 'react-native-firebase-perf-apollo-link';

// ...
ApolloLink.from([
  /**
   * Create a Firebase perf monitoring link
   *
   * @param {ReactNativeFirebase.FirebaseModuleWithStatics<FirebasePerformanceTypes.Module, FirebasePerformanceTypes.Statics>} perf - React Native Firebase Performance module
   * @param {boolean} [debug=false] - Enable debug mode
   */
  createFPMLink(perf, true),
  // ...
]);

License

This project is licensed under the MIT License - see the license file for details.

Keywords

FAQs

Last updated on 05 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc