Skip to content

Commit b7a66f3

Browse files
ref: React Native support for React Navigation V6 (#4134)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
1 parent 018a38c commit b7a66f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/platforms/react-native/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ export default Sentry.wrap(App);
2222

2323
### Enable Routing Instrumentation
2424

25-
We currently provide two routing instrumentations out of the box to instrument route changes for React Navigation V5 and V4. In the future, we will add support for other libraries such as [react-native-navigation](https://github.com/wix/react-native-navigation). Otherwise, if you have a custom routing instrumentation, or use a routing library we don't yet support, you can use the bare bones routing instrumentation or create your own by extending it.
25+
We currently provide two routing instrumentations out of the box to instrument route changes for React Navigation. In the future, we will add support for other libraries such as [react-native-navigation](https://github.com/wix/react-native-navigation). If you have a custom routing instrumentation or use a routing library we don't yet support, you can use the bare bones routing instrumentation or create your own by extending it.
2626

27-
#### React Navigation V5
27+
#### React Navigation
28+
29+
This instrumentation supports React Navigation version 5 and above. If you use React Navigation version 4, see the [instrumentation for React Navigation V4](#react-navigation-v4).
2830

2931
<Note>
3032

@@ -38,7 +40,7 @@ Note that this routing instrumentation will create a transaction on every route
3840
import * as Sentry from "@sentry/react-native";
3941

4042
// Construct a new instrumentation instance. This is needed to communicate between the integration and React
41-
const routingInstrumentation = new Sentry.ReactNavigationV5Instrumentation();
43+
const routingInstrumentation = new Sentry.ReactNavigationInstrumentation();
4244

4345
Sentry.init({
4446
...

0 commit comments

Comments
 (0)