Skip to content

Commit f6a696e

Browse files
improving docs
1 parent 4c06c41 commit f6a696e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/node/instrumentation-react-native-navigation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ For instance, when the application starts and the user navigates to a new sectio
198198
}
199199
```
200200
201-
If you dig into the attributes, `view.launch` refers to the moment the app is launched. It will be `true` only the first time the app mounts. Changing the status between background/foreground won't modify this attribute. For this case the `view.state.end` is used, and it can contain two possible values: `active` and `background`.
201+
If you dig into the attributes, `view.launch` refers to the moment the app is launched. It will be `true` only the first time the app mounts. Changing the status between background/foreground won't modify this attribute. For this case the `view.state.end` is used, and it can contain two possible values for Android: `active` and `background`, and a third one can be found for iOS: `inactive` (for more information about this you can visit the official [React Native - App States](https://reactnative.dev/docs/appstate#app-states) documentation).
202202
203203
Both components (<NavigationTracker /> and <NativeNavigationTracker />) are built on top of third-party libraries and function according to the respective APIs exposed by those libraries.
204204

plugins/node/instrumentation-react-native-navigation/src/utils/spanFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const spanStart = (
4545
span.current.setAttributes({
4646
// it should create the first span knowing there is not a previous view
4747
[ATTRIBUTES.initialView]: !!isLaunch,
48-
// it should set the view name in case it's useful have this as attr
48+
// it should set the view name in case it's useful to have this as an attr
4949
[ATTRIBUTES.viewName]: currentRouteName,
5050
});
5151

0 commit comments

Comments
 (0)