bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

Support react-native-web

Open EyMaddis opened this issue 6 years ago • 9 comments

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.

EyMaddis avatar May 30 '18 16:05 EyMaddis

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.

fractalwrench avatar Jun 06 '18 09:06 fractalwrench

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 avatar Sep 14 '20 10:09 johnkiely1

@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?

ofirgeller avatar Mar 06 '21 17:03 ofirgeller

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 avatar Mar 12 '21 12:03 johnkiely1

@johnkiely1 Any updates on this?

mcarlson avatar Aug 13 '21 17:08 mcarlson

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.

yousif-bugsnag avatar Aug 16 '21 08:08 yousif-bugsnag

We've run into the same limitation. What are people doing as a workaround? Are there any alternatives?

gsdean avatar Oct 12 '21 14:10 gsdean

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

EyMaddis avatar Dec 01 '21 13:12 EyMaddis

Enjoyed using Bugsnag for my mobile app but this is was a dealbreaker now that I need web support. Switched to Sentry.

AtlantisPleb avatar Jul 23 '22 04:07 AtlantisPleb