react-navigation / redux-helpers

Redux middleware and utils for React Navigation
Other
296 stars 43 forks source link

Bad arguments on ReduxifyNavigator #67

Closed maxime-aubry closed 5 years ago

maxime-aubry commented 5 years ago

Here are my files : navigation/index.ts navigation/routes.ts navigation/Reducers/index.ts

I have an error into navigation/index.ts on line 23. Sorry, it's in french. Could you help me to understand what I have to do please ? Thanks.

L'argument de type 'ComponentType<{ state: NavigationState; dispatch: NavigationDispatch; }>' n'est pas attribuable au paramètre de type 'ComponentType<Matching<{ state: NavigationState; } & DispatchProp, { state: NavigationState; dispatch: NavigationDispatch; }>>'.

Impossible d'assigner le type 'ComponentClass<{ state: NavigationState; dispatch: NavigationDispatch; }, any>' au type 'ComponentType<Matching<{ state: NavigationState; } & DispatchProp, { state: NavigationState; dispatch: NavigationDispatch; }>>'.

Impossible d'assigner le type 'ComponentClass<{ state: NavigationState; dispatch: NavigationDispatch; }, any>' au type 'ComponentClass<Matching<{ state: NavigationState; } & DispatchProp, { state: NavigationState; dispatch: NavigationDispatch; }>, any>'.

Les types de la propriété 'propTypes' sont incompatibles.

Impossible d'assigner le type 'ValidationMap<{ state: NavigationState; dispatch: NavigationDispatch; }> | undefined' au type 'ValidationMap<Matching<{ state: NavigationState; } & DispatchProp, { state: NavigationState; dispatch: NavigationDispatch; }>> | undefined'.

Impossible d'assigner le type 'ValidationMap<{ state: NavigationState; dispatch: NavigationDispatch; }>' au type 'ValidationMap<Matching<{ state: NavigationState; } & DispatchProp, { state: NavigationState; dispatch: NavigationDispatch; }>>'.

Les types de la propriété 'dispatch' sont incompatibles.

Impossible d'assigner le type 'Validator' au type 'Validator<Dispatch>'.

Impossible d'assigner le type 'NavigationDispatch' au type 'Dispatch'. [2345] const App: React.ComponentType<{state: NavigationState; dispatch: NavigationDispatch; }>

maxime-aubry commented 5 years ago

Please, help.

Ashoat commented 5 years ago

I can investigate further if you can provide an MCVE that reproduces the issue, in the form of an Expo Snack or a react-native init'd repo hosted on GitHub.