Skip to content

[@types/react-native] scrollToLocation missing in SectionList #25025

@yamiscott

Description

@yamiscott

I noticed that scrollToLocation is missing from the type definitions:

const index = 10
const section = 0
const list: SectionListStatic = ref
list.scrollToLocation({animated: true, itemIndex: index, sectionIndex: section})

Typescript linter reports:

Error:(226, 18) TS2339: Property 'scrollToLocation' does not exist on type 'SectionListStatic<YourComponentHere>'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions