apollo-link-react-native-firebase-perf
v1.0.2
Published
React-Native Firebase Performance Monitoring for Apollo GraphQL Client using Apollo Link
Downloads
752
Maintainers
Readme
apollo-link-react-native-firebase-perf
Firebase Performance Monitoring for Apollo GraphQL Client using Apollo Link
Installing / Getting Started
npm install apollo-link-react-native-firebase-perf
Or:
yarn add apollo-link-react-native-firebase-perf
Prerequisites
- Apollo Link: ^1.2.14
- @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 'apollo-link-react-native-firebase-perf';
// ...
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.