react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

1.6.x Iteration Feedback

Open ArrayZoneYour opened this issue 7 years ago • 16 comments

We plan to solve the backlog of issues and PRs now. Welcome to install and feedback👏

npm i --save react-native-swiper@next
# Remember to clean old node_modules and restart the react-native dev server if you use 1.5.x before

💥 Breaking Changes

android swiper container style props name change: style => containerStyle

📚 Completed Work

Dependency

  • Remove ViewPagerAndroid, use ScrollView #1009

TypeScript

  • correct the wrong types #1000
  • Add missing scrollBy TypeScript definition #931
  • SwiperProps extends ScrollView base type (✨v1.6.0-rc.3)

New Feature

  • add scrollTo #831
  • Added prop to disable the PrevButton #749
  • Optionally render page #1004

Bug Fix

  • ES6 and CommonJS compatibility #717
  • Solves the issue of state messing up when parent component calls setState #939
  • replay when autoplay is setted to true #1002
  • rename unsafe lifecycles to fix #1061
  • fix broken examples and migrate to react-native 0.60.x
  • fix bad jumping on ios when loadMinimal set true
  • fix fliker when loop and loadMinimal are enabled #1062
  • invoke onMomentumScrollEnd even offset no diff (✨v1.6.0-rc.3)

ArrayZoneYour avatar Jun 26 '19 14:06 ArrayZoneYour

Is it solve the problem https://github.com/leecade/react-native-swiper/issues/957 ?

confidence68 avatar Jul 03 '19 12:07 confidence68

Hey! I installed nightly version but it doesn't swipe anymore.. neither @1.5.6 for me at least.

I'm currently using : [email protected] (this is the one working for me, but with the ViewPagerAndroid warning) [email protected] OS: Android 9

michael-papinotas avatar Jul 15 '19 21:07 michael-papinotas

Hey! I installed nightly version but it doesn't swipe anymore.. neither @1.5.6 for me at least.

I'm currently using : [email protected] (this is the one working for me, but with the ViewPagerAndroid warning) [email protected] OS: Android 9

You should open another issue to report it : ) I cannot reproduce it with the lack of information : (

ArrayZoneYour avatar Jul 16 '19 02:07 ArrayZoneYour

Refactoring some piece of code, in case, from componentWillReceiveProps to use getDerivedStateFromProps and componentWillUpdate to componentDidUpdate instead

ithustle avatar Jul 17 '19 19:07 ithustle

@ithustle I plan to do it this weekend : )

ArrayZoneYour avatar Aug 01 '19 03:08 ArrayZoneYour

react-native-swiper 1.6 working fine on android but not on ios. On ios previous button is not working and also index number is causing problems. I don't know what's the problem with this package because 1.5 version works fine on ios but not on android and now latest version works fine on android but not on ios.

saadsaleem187 avatar Aug 29 '19 07:08 saadsaleem187

i don't know how you guys managing this package. Without testing why you uploaded new versions. So many issues with this package. 1.5 works on ios not on android and now latest version works fine on android without any issues but not on ios. This package is not stable.

saadsaleem187 avatar Aug 29 '19 07:08 saadsaleem187

swipe is not working with latest react-native version 0.61.1

ursnj avatar Sep 28 '19 02:09 ursnj

@saadsaleem187 Sorry for the bad experience, but I think you should open a separate issue and only the link referenced here to help other contributors to solve it.

ArrayZoneYour avatar Sep 30 '19 03:09 ArrayZoneYour

React Native 0.61.2 Android builds (not tested iOS) swiper refuses to swipe. This includes using the scrollBy() func. Interestingly the showsPagination dots do update but the content remains frozen. Has made the package completely unusable :(

I'll be digging in shortly to see if I can identify the issue

Edit: What was the rationale behind removing ViewPagerAndroid and not simply sourcing it from its new home import ViewPager from '@react-native-community/viewpager'?

juanjsebgarcia avatar Oct 11 '19 06:10 juanjsebgarcia

React Native 0.61.2 Android builds (not tested iOS) swiper refuses to swipe. This includes using the scrollBy() func. Interestingly the showsPagination dots do update but the content remains frozen. Has made the package completely unusable :(

I'll be digging in shortly to see if I can identify the issue

Edit: What was the rationale behind removing ViewPagerAndroid and not simply sourcing it from its new home import ViewPager from '@react-native-community/viewpager'?

@juanjsebgarcia You'd better open an issue to provide more information.

ArrayZoneYour avatar Oct 11 '19 12:10 ArrayZoneYour

Edit: What was the rationale behind removing ViewPagerAndroid and not simply sourcing it from its new home import ViewPager from '@react-native-community/viewpager'?

There is a version, that contains updated ViewPager: https://www.npmjs.com/package/react-native-swiper/v/1.6.0-dev.1

S-Vlad avatar Nov 12 '19 07:11 S-Vlad

Why remove when https://github.com/react-native-community/react-native-viewpager provides exactly the use case for paging through views, and offers best native performance?

fungilation avatar Nov 20 '19 21:11 fungilation

This is still broken on Android. I am using it as a fullpage swipe and all nested ScrollViews do not work inside of the Swiper, but behave fine on iOS

jantongiovanni avatar Nov 22 '19 22:11 jantongiovanni

I am experiencing a huge performance loss upgrading from 1.5.14 to 1.6.0-rc.3. By swiping the page, the index gets updated almost a second later. I am using redux as a state holder

Aryojaam avatar Dec 20 '19 09:12 Aryojaam

Removing @react-native-community/viewpager is honestly a mistake. If 1.6.x stays the course with removal, I for one will be forking 1.5.x to stay with viewpager for 100% native animation performance. Swiper is a key component to my entire app's UI, full screen so I need animation performance to be lag-free.

fungilation avatar Dec 20 '19 20:12 fungilation