-
-
Couldn't load subscription status.
- Fork 353
Open
0 / 10 of 1 issue completedLabels
Description
Available in https://github.com/getsentry/sentry-react-native/releases/tag/6.7.0-alpha.0
Create sentry.options.json in the React Native project root and set options the same as you currently have in Sentry.init in JS.
{
"dsn": "https://[email protected]/value",
}Initialize Sentry on the native layers by newly provided native methods.
import io.sentry.react.RNSentrySDK
class MainApplication : Application(), ReactApplication {
override fun onCreate() {
super.onCreate()
RNSentrySDK.init(this)
}
}#import <RNSentry/RNSentry.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[RNSentrySDK start];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@endDevelopment
Tasks
- Create RNSentry.init for Android
- Create RNSentry.init for Cocoa
- Update
@sentry/wizardto optionally usesentry.options.json - Add new manual init docs
- Add JSON file schema
- Add E2E tests using manual init
- Update Sample App to use manual init by default
Native RNSentry.init tasks
- Drop JS Errors
sentry-react-native/ios/RNSentry.mm
Line 127 in 9421616
[event.exceptions.firstObject.type rangeOfString:@"Unhandled JS Exception"].location != NSNotFound) { - Add event origin and environment
sentry-react-native/ios/RNSentry.mm
Line 177 in 9421616
- (void)setEventOriginTag:(SentryEvent *)event {
kamui545, kahest, udeyrishi, fuelkoy and lucas-zimerman
Sub-issues
Metadata
Metadata
Assignees
Labels
Projects
Status
Backlog
Status
No status