Skip to content

Commit

Permalink
rm Sentry code as link will re-instrument properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmanvar committed Jul 14, 2019
1 parent 607d66a commit 1fbe894
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ https://docs.sentry.io/clients/react-native/
Show how Sentry works to surface errors in react-native applications (stacktraces will be symbolicated + unminified)

## First-time Setup
this project uses:
React Native v0.59.10
react-native-sentry ^0.43.2
react-native-cli: 2.0.1
this project uses:
React Native v0.59.10
react-native-sentry ^0.43.2
react-native-cli: 2.0.1

0. create a React Native project on Sentry.io (the `link` command below will have you select your RN project)
1. cd ReactNativeDemo
Expand All @@ -18,7 +18,8 @@ react-native-cli: 2.0.1
npm install -g react-native-cli
npm install && yarn install
```
3. `react-native link react-native-sentry`
3. Remove Sentry import and install code (lines 4-8) in App.js
4. `sentry`react-native link react-native-sentry`
updates the following:
modified: android/app/build.gradle
modified: android/app/src/main/java/com/reactnativedemo/MainApplication.java
Expand All @@ -29,7 +30,7 @@ modified: android/app/build.gradle
modified: package-lock.json
modified: yarn.lock
modified: App.js
4. Run it
5. Run it
ios
```
$ react-native run-ios --configuration Release
Expand All @@ -39,7 +40,7 @@ android
$ react-native run-android --variant
```

5. Simulator/Emulator should have launched with sample app. Trigger errors and go to Sentry to see them!
6. Simulator/Emulator should have launched with sample app. Trigger errors and go to Sentry to see them!

# GIF (JS error)
![Alt Text](react-native-demo.gif)
Expand Down

0 comments on commit 1fbe894

Please sign in to comment.