react-native-ui-kitten icon indicating copy to clipboard operation
react-native-ui-kitten copied to clipboard

Limited nature of the ViewPager element.

Open bataevvlad opened this issue 3 years ago • 0 comments

🚀 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.

bataevvlad avatar Nov 28 '22 16:11 bataevvlad