Skip to content

Commit

Permalink
Fix includes for react, Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Mar 27, 2017
1 parent a9a2b61 commit 8f850ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ crash handler in your `AppDelegate.m` after the root view was created:

.. sourcecode:: objc

#import <React/RNSentry.h>
#if __has_include(<React/RNSentry.h>)
#import <React/RNSentry.h> // This is used for versions of react >= 0.40
#else
#import "RNSentry.h" // This is used for versions of react < 0.40
#endif

/* ... */
[RNSentry installWithRootView:rootView];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <React/RNSentry.h>
#if __has_include(<React/RNSentry.h>)
#import <React/RNSentry.h> // This is used for versions of react >= 0.40
#else
#import "RNSentry.h" // This is used for versions of react < 0.40
#endif


@interface AppDelegate()

Expand Down
5 changes: 5 additions & 0 deletions ios/RNSentry.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#import "RNSentry.h"
#import "RSSwizzle.h"
#if __has_include(<React/RCTConvert.h>)
#import <React/RCTConvert.h>
#else
#import "RCTConvert.h"
#endif


@import Sentry;

Expand Down

0 comments on commit 8f850ef

Please sign in to comment.