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
just bringing awareness here that due to @types/react^18.3.5 and changes made to the forwardRef function, withSafeAreaInsets is throwing a Typescript error.
Argumentoftype'(props: T, ref: React.Ref<unknown>) => React.JSX.Element'isnotassignabletoparameteroftype'ForwardRefRenderFunction<unknown, PropsWithoutRef<T>>'.Typesofparameters'props'and'props'areincompatible.Type 'PropsWithoutRef<T>' is not assignable to type 'T'. 'T' could be instantiated with an arbitrary type which could be unrelated to 'PropsWithoutRef<T>'.
I have patched T to use PropsWithoutRef<T> that resolves the issue, but this is temporary solution as it is not compatible with @types/react^18.3.4
The text was updated successfully, but these errors were encountered:
If you can submit a PR that fixes the issue without breaking older versions, we’ll merge. Otherwise, you could also open an issue on the react types package as to why it broke other packages
Hello,
just bringing awareness here that due to @types/react^18.3.5 and changes made to the forwardRef function,
withSafeAreaInsets
is throwing a Typescript error.I have patched T to use
PropsWithoutRef<T>
that resolves the issue, but this is temporary solution as it is not compatible with@types/react^18.3.4
The text was updated successfully, but these errors were encountered: