diff --git a/README.md b/README.md index 91a7a418..74f229bd 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 @@ -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)