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
FYI, the .d.ts file doesn't includes the type declarations for the custom methods as well as the FlatList methods.
const listRef = useRef<BigList>(null);
// This line return a TypeScript error:
// TS2339: Property 'scrollToSection' does not exist on type 'BigList '.
listRef.current?.scrollToSection({
section: 0,
animated: true,
});
<BigList ref={listRef} ... />
The temporary solution (but quiet ugly) is to set the comment line // @ts-ignore before the call of the methods.
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for this library.
FYI, the
.d.ts
file doesn't includes the type declarations for the custom methods as well as theFlatList
methods.The temporary solution (but quiet ugly) is to set the comment line
// @ts-ignore
before the call of the methods.Thanks
The text was updated successfully, but these errors were encountered: