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

Commit d3c419f

Browse files
committed
sentry for react native web
1 parent 18108fe commit d3c419f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
},
4949
"dependencies": {
50-
"@expo/vector-icons": "^10.0.0",
50+
"@expo/vector-icons": "^10.0.5",
5151
"@react-native-community/async-storage": "~1.11.0",
5252
"@react-native-community/checkbox": "^0.4.2",
5353
"@react-native-community/clipboard": "^1.2.3",
@@ -59,6 +59,7 @@
5959
"@react-navigation/material-top-tabs": "^5.2.16",
6060
"@react-navigation/native": "^5.7.3",
6161
"@react-navigation/stack": "^5.9.0",
62+
"@sentry/browser": "^5.6.3",
6263
"axios": "^0.20.0",
6364
"base-64": "^0.1.0",
6465
"expo": "^38.0.9",

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)