fsc-react-native-sentry
Version:
Official Sentry SDK for react-native
42 lines (33 loc) • 1.75 kB
Markdown
<p align="center">
<a href="https://sentry.io" target="_blank" align="center">
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
</a>
<br/>
<h1>Official Sentry SDK for iOS/macOS/tvOS/watchOS<sup>(1)</sup>.</h1>
</p>
[](https://travis-ci.org/getsentry/sentry-cocoa)


[](https://cocoapods.org/pods/Sentry)
[](https://cocoapods.org/pods/Sentry)
[](https://github.com/Carthage/Carthage)
[](https://codecov.io/gh/getsentry/sentry-cocoa)
This SDK is written in Objective-C but also works for Swift projects.
```swift
import Sentry
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Create a Sentry client and start crash handler
do {
Client.shared = try Client(dsn: "___PUBLIC_DSN___")
try Client.shared?.startCrashHandler()
} catch let error {
print("\(error)")
// Wrong DSN or KSCrash not installed
}
return true
}
```
- [Installation](https://docs.sentry.io/clients/cocoa/#installation)
- [Documentation](https://docs.sentry.io/clients/cocoa/)
<sup>(1)</sup>limited symbolication support