Skip to content

Mismatch between useReactNavigationDevTools and React Navigation container #70

Description

@nikero41

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions