Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 76f2805

Browse files
committed
sentry for react native web
1 parent 0e9313c commit 76f2805

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

package-lock.json

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
},
4646
"dependencies": {
4747
"@expo/vector-icons": "^10.0.5",
48+
"@sentry/browser": "^5.6.3",
4849
"axios": "^0.19.0",
4950
"babel-core": "^7.0.0-bridge.0",
5051
"base-64": "^0.1.0",

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ const createExpoWebpackConfigAsync = require(`@expo/webpack-config`)
33
// Expo CLI will await this method so you can optionally return a promise.
44
module.exports = async (env, argv) => {
55
const config = await createExpoWebpackConfigAsync(env, argv)
6+
7+
// maps support for react native web
68
config.resolve.alias[`react-native`] = `react-native-web`
79
config.resolve.alias[`react-native-maps`] = `react-native-web-maps`
810

11+
// sentry support for react native web
12+
config.resolve.alias[`sentry-expo`] = `@sentry/browser`
13+
914
// Maybe you want to turn off compression in dev mode.
1015
if (config.mode === `development`) {
1116
config.devServer.compress = false

0 commit comments

Comments
 (0)