File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
docs/platforms/react-native/manual-setup Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ pnpm add @sentry/react-native
6767Import the ` @sentry/react-native ` package and call ` init ` with your DSN :
6868
6969``` javascript {tabTitle:App.js or app/_layout.js}
70- import { Text , View } from " react-native " ;
70+ import { Stack } from " expo-router " ;
7171import * as Sentry from " @sentry/react-native" ;
7272
7373Sentry .init ({
@@ -89,23 +89,19 @@ Sentry.init({
8989 // ___PRODUCT_OPTION_END___ profiling
9090});
9191
92- function App () {
93- return (
94- < View>
95- < Text > Expo Example! < / Text >
96- < / View>
97- );
92+ function RootLayout () {
93+ return < Stack / > ;
9894}
9995
100- export default Sentry .wrap (App );
96+ export default Sentry .wrap (RootLayout );
10197```
10298
10399### Wrap Your App
104100
105101Wrap the root component of your application with ` Sentry.wrap ` :
106102
107103``` javascript {tabTitle:App.js or app/_layout.js}
108- export default Sentry .wrap (App );
104+ export default Sentry .wrap (RootLayout );
109105```
110106
111107### Add the Sentry Expo Plugin
You can’t perform that action at this time.
0 commit comments