Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

initialScrollToIndex doesn't scroll to the last item #38

@nornewman

Description

@nornewman

Thank you for the package, it works pretty good!
Although, I have one issue - which is a bit frustrating.
initialScrollToIndex newer opens the last item of the array. It just behaves in a weird way.
Setup:

 <SmoothPicker
                keyExtractor={(_, index) => index.toString()}
                showsVerticalScrollIndicator={false}
                initialScrollToIndex={dataCity.length - 1}
                data={dataCity}
                horizontal={true}
                scrollAnimation
                showsHorizontalScrollIndicator={false}
                renderItem={option => ItemToRender(option, selected, true)}
                magnet
            />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions