Skip to content

Commit 0017175

Browse files
committed
Recommend not wrapping NavigationContainer for analytics libraries
1 parent 60cb4ab commit 0017175

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

versioned_docs/version-7.x/screen-tracking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default function App() {
184184

185185
:::note
186186

187-
If you are building a library that wants to provide screen tracking integration with React Navigation, you can accept a [`ref`](navigation-container.md#ref) to the navigation container and use the [`ready`](navigation-container.md#ready) and [`state`](navigation-container.md#state) events instead of `onReady` and `onStateChange` props to keep your logic self-contained.
187+
If you are building a library that provides screen tracking integration with React Navigation, accept a [`ref`](navigation-container.md#ref) to the container and use the [`ready`](navigation-container.md#ready) and [`state`](navigation-container.md#state) events instead of `onReady` and `onStateChange`. Don't wrap `NavigationContainer` in your own component as it's not compatible with the [Static API](static-configuration.md) and doesn't compose with other libraries.
188188

189189
:::
190190

versioned_docs/version-8.x/screen-tracking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function App() {
9494

9595
:::note
9696

97-
If you are building a library that wants to provide screen tracking integration with React Navigation, you can accept a [`ref`](navigation-container.md#ref) to the navigation container and use the [`ready`](navigation-container.md#ready) and [`state`](navigation-container.md#state) events instead of `onReady` and `onStateChange` props to keep your logic self-contained.
97+
If you are building a library that provides screen tracking integration with React Navigation, accept a [`ref`](navigation-container.md#ref) to the container and use the [`ready`](navigation-container.md#ready) and [`state`](navigation-container.md#state) events instead of `onReady` and `onStateChange`. Don't wrap `NavigationContainer` in your own component as it's not compatible with the [Static API](static-configuration.md) and doesn't compose with other libraries.
9898

9999
:::
100100

0 commit comments

Comments
 (0)