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
Compiled with problems:
ERROR in src/components/PullToRefresh/PullToRefresh.tsx:128:7
TS2769: No overload matches this call.
Overload 1 of 2, '(props: PropsType | Readonly<PropsType>): PullToRefresh', gave the following error.
Type '() => HTMLElement' is not assignable to type '() => ReactNode'.
Type 'HTMLElement' is not assignable to type 'ReactNode'.
Type 'HTMLElement' is missing the following properties from type 'ReactPortal': key, type, props
Overload 2 of 2, '(props: PropsType, context: any): PullToRefresh', gave the following error.
Type '() => HTMLElement' is not assignable to type '() => ReactNode'.
126 | return (
127 | <RMCPullToRefresh
> 128 | getScrollContainer={() => document.body}
| ^^^^^^^^^^^^^^^^^^
129 | direction="down"
130 | scale={1}
131 | distanceToRefresh={REFRESH_DISTANCE}
When using this lib inside a tsx file, like the code below
I got into this issue:
I think the interface PropsType should be
instead of
Branch: master
Commit: e60268f
Parents: e96ce45
Author: duxiaodong <duxiaodong@darlin.me>
Committer: duxiaodong <duxiaodong@darlin.me>
Date: Mon Jun 15 2020 14:32:42 GMT+0700 (Indochina Time)
The text was updated successfully, but these errors were encountered: