@bugsnag/plugin-react-navigation-performance
TypeScript icon, indicating that this package has built-in type declarations

2.5.0 • Public • Published

@bugsnag/plugin-react-navigation-performance

A React Navigation integration for BugSnag Performance.

Usage

import BugsnagPerformance from "@bugsnag/react-native-performance"
import BugsnagPluginReactNavigationNativePerformance from "@bugsnag/plugin-react-navigation-performance"
import { NavigationContainer } from "@react-navigation/native"

const navigationPlugin = new BugsnagPluginReactNavigationNativePerformance()

BugsnagPerformance.start({
  apiKey: "my-api-key",
  plugins: [navigationPlugin]
})

const BugsnagNavigationContainer = navigationPlugin.createNavigationContainer(NavigationContainer)

function App () {
  return (
    <BugsnagNavigationContainer>
      <Stack.Navigator initialRouteName="Home">
        <Stack.Screen name="Home" component={HomeScreen} />
        <Stack.Screen name="Profile" component={ProfileScreen} />
      </Stack.Navigator>
    </BugsnagNavigationContainer>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @bugsnag/plugin-react-navigation-performance

Weekly Downloads

13

Version

2.5.0

License

MIT

Unpacked Size

17.2 kB

Total Files

18

Last publish

Collaborators

  • joshedney
  • ahmed_bugsnag
  • gingerbenw
  • bullmo
  • foygl
  • djskinner
  • tomlongridge
  • imjoehaines
  • twometresteve