bugsnag-js
bugsnag-js copied to clipboard
Support react-native-web
Description
Since bugsnag supports regular React applications, I think that react-native-web could be made compatible by using bugsnag-js/-react.
I tried to do this myself, but the clients are not fully compatible, for example I wanted to use bugsnag-react, but client.use()
is not defined on native.
Describe the solution you'd like
Ability to support react-native-web by aliasing bugsnap-react-native
with bugsnap-js
.
Describe alternatives you've considered Example code describing how to use bugsnap with react-native-web apps.
Thanks for the suggestion @EyMaddis - this functionality is on our internal roadmap. I believe we'd probably need a closer integration between bugsnag-js and bugsnag-react-native to achieve this.
This has been transferred to the bugsnag-js repo as the Bugsnag react native library is now part of this repository (as of v7.3).
@johnkiely1 do we now get the same interface for react-native and web? what is the recomendad way of using bugsang in a react-native-web project?
Hi @ofirgeller, While the Bugsnag React Native library has been brought into the bugsnag-js repo, there is still additional work that needs to be done to support react-native-web. At the moment we don't have an exact timeframe for this but will we post on this thread when we have any updates to share.
@johnkiely1 Any updates on this?
Hi @mcarlson, I don't have any updates to share on this at present I'm afraid. We'll be sure to update this thread when we do.
We've run into the same limitation. What are people doing as a workaround? Are there any alternatives?
I just introduced an errorReporting.js
file which re-exported some bugsnag functionality and then created a errorReporting.web.js
file which has the same API
Enjoyed using Bugsnag for my mobile app but this is was a dealbreaker now that I need web support. Switched to Sentry.