React Navigation Plugin in TypeScript
See original GitHub issueDescription
When installing the React Navigation plugin in a TypeScript project it fails to typecheck const { createNavigationContainer } = Bugsnag.getPlugin('reactNavigation')
TS2339: Property 'createNavigationContainer' does not exist on type 'BugsnagPluginReactNavigationResult | undefined'.
Describe the solution you’d like
Better typings in the package or some docs on how to workaround
https://docs.bugsnag.com/platforms/react-native/react-native/navigation-libraries/ https://github.com/bugsnag/bugsnag-js/blob/next/packages/plugin-react-navigation/react-navigation.js
"@bugsnag/plugin-react-navigation": "^7.10.0",
"@bugsnag/react-native": "^7.10.5",
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Type checking with TypeScript - React Navigation
React Navigation is written with TypeScript and exports type definitions for TypeScript projects. Type checking the navigator. To type check our route name...
Read more >@bugsnag/plugin-react-navigation - npm
Integrates with the React Navigation library to provide better error context and navigation breadcrumbs. License. This package is free software ...
Read more >How to add drawer and stack navigation with TypeScript in ...
In this tutorial we are going to implement react navigation with typescript.
Read more >Working with Stack Navigation in React Native with Typescript
npm install @react-navigation/native. There are some extra dependencies for Expo Managed Project · expo install react-native-screens react-native-safe-area- ...
Read more >React Native Bottom Navigation Error using TypeScript
I just downgrade these packages version and the issue is resolved. Here is my downgrade version: "@react-navigation/bottom-tabs": "5.11.11", ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @johnkiely1 that’s not an ideal workaround I think for now I’m going to avoid Bugsnag plugins and just replicate the functionality.
Feedback is: I’m a big fan of your SDK and bring it to every client I can, but just feel like the docs/work around plugins (at least for React Native) doesn’t feel like it has the polish of other React Native specific things that you guys support e.g. CodePush.
Another example but separate issue is Jest Mocking / TypeScript support for the the
.createErrorBoundary
pluginObviously separate issue but just wanted to illustrate that it feels like plugins could be super useful but lack a bit of love.
Don’t worry my love for Bugsnag endures ❤️
@xander-jones going to continue discussion in #1112.