dev-plugins icon indicating copy to clipboard operation
dev-plugins copied to clipboard

Mismatch between useReactNavigationDevTools and React Navigation container

Open nikero41 opened this issue 7 months ago • 0 comments

Applying the example to a latest React Navigation and Expo project got me this error.

Image Image

I believe this happens due to React Navigation having this type as the returned navigationRef

export type NavigationContainerRefWithCurrent<ParamList extends {}> =
  NavigationContainerRef<ParamList> & {
    current: NavigationContainerRef<ParamList> | null;
  };

While the dev tool expects the current property to not be null.

nikero41 avatar May 07 '25 08:05 nikero41