You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node_modules/react-native-paper/src/utils/forwardRef.tsx:21:14 - error TS2322: Type '<T, P = {}>(render: ForwardRefRenderFunction<T, PropsWithoutRef<P>>) => ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>' is not assignable to type '<T, P = {}>(render: ForwardRefRenderFunction<T, P>) => ForwardRefComponent<T, P>'.
Types of parameters 'render' and 'render' are incompatible.
Type 'ForwardRefRenderFunction<T, P>' is not assignable to type 'ForwardRefRenderFunction<T, PropsWithoutRef<P>>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'PropsWithoutRef<P>' is not assignable to type 'P'.
'P' could be instantiated with an arbitrary type which could be unrelated to 'PropsWithoutRef<P>'.
Current behaviour
Expected behaviour
type checking should complete without errors
How to reproduce?
tsc --noEmit
in the project directoryPreview
N/A
What have you tried so far?
react-native-paper/src/utils/forwardRef.tsx
skipLibCheck: true
to tsconfig.jsonnode_modules/react-native-paper/src
to theexclude
array in tsconfig.jsonYour Environment
The text was updated successfully, but these errors were encountered: