6.7.0-alpha.0
Pre-release
Pre-release
Features
-
Capture App Start errors and crashes by initializing Sentry from
sentry.options.json(#4472)Create
sentry.options.jsonin the React Native project root and set options the same as you currently have inSentry.initin 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]; } @end
Changes
- Load
optionsFileinto the JS bundle during Metro bundle process (#4476) - Add experimental version of
startWithConfigureOptionsfor Apple platforms (#4444) - Add experimental version of
initwith optionalOptionsConfiguration<SentryAndroidOptions>for Android (#4451) - Add initialization using
sentry.options.jsonfor Apple platforms (#4447) - Add initialization using
sentry.options.jsonfor Android (#4451) - Merge options from file with
Sentry.initoptions in JS (#4510)
Internal
- Extract iOS native initialization to standalone structures (#4442)
- Extract Android native initialization to standalone structures (#4445)