File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
examples/ReactNativeExample/ios/ReactNativeExample Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,11 @@ crash handler in your `AppDelegate.m` after the root view was created:
169169
170170.. sourcecode :: objc
171171
172- #import <React/RNSentry.h>
172+ #if __has_include(<React/RNSentry.h>)
173+ #import <React/RNSentry.h> // This is used for versions of react >= 0.40
174+ #else
175+ #import "RNSentry.h" // This is used for versions of react < 0.40
176+ #endif
173177
174178 /* ... */
175179 [RNSentry installWithRootView:rootView];
Original file line number Diff line number Diff line change 1212#import < React/RCTBundleURLProvider.h>
1313#import < React/RCTRootView.h>
1414#import < React/RNSentry.h>
15+ #if __has_include(<React/RNSentry.h>)
16+ #import < React/RNSentry.h> // This is used for versions of react >= 0.40
17+ #else
18+ #import " RNSentry.h" // This is used for versions of react < 0.40
19+ #endif
20+
1521
1622@interface AppDelegate ()
1723
Original file line number Diff line number Diff line change 11#import " RNSentry.h"
22#import " RSSwizzle.h"
3+ #if __has_include(<React/RCTConvert.h>)
34#import < React/RCTConvert.h>
5+ #else
6+ #import " RCTConvert.h"
7+ #endif
8+
49
510@import Sentry;
611
You can’t perform that action at this time.
0 commit comments