Skip to content

Limited nature of the ViewPager element.聽#1684

Description

@bataevvlad

馃殌 Feature Proposal

Separate the internal implementation for ViewPager for web and mobile platforms, as the web does not have the ability to support FlatList/ScrollView etc., ViewPager now has limited functionality than before

Motivation

At the moment it is limited in its functionality, you cannot use the bounce effect as you did before when it was written via ScrollView/Flatlist

Example

  const cards = [1, 2, 3]

  <ViewPager
    style={style.carouselContainer}
    selectedIndex={selectedIndex}
    onSelect={index => setSelectedIndex(index)}>
     {[...cards].map((item, index) => renderItem(item, index))}
 </ViewPager>

You cant scroll first item with the right swipe, it will be static, the same will be with last element in array.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions