dev-plugins
dev-plugins copied to clipboard
Mismatch between useReactNavigationDevTools and React Navigation container
Applying the example to a latest React Navigation and Expo project got me this error.
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.