@momo-kits/carousel 0.0.20 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CarouselV2.js +3 -3
  2. package/package.json +1 -1
package/CarouselV2.js CHANGED
@@ -946,7 +946,6 @@ export default class Carousel extends React.PureComponent {
946
946
  }
947
947
 
948
948
  const offset = this._getItemScrollOffset(index);
949
- console.log('index', index, offset)
950
949
 
951
950
  if (offset === undefined) {
952
951
  return;
@@ -971,7 +970,6 @@ export default class Carousel extends React.PureComponent {
971
970
  if (animated) {
972
971
  this._androidRepositioningTimeout = setTimeout(() => {
973
972
  // Without scroll animation, the behavior is completely buggy...
974
- console.log('vao roi nek')
975
973
  this._repositionScroll(index, false);
976
974
  }, 400); // Approximate scroll duration on Android
977
975
  } else {
@@ -1308,6 +1306,7 @@ Carousel.propTypes = {
1308
1306
  showsPagination: PropTypes.bool,
1309
1307
  isCustomScrollWidth: PropTypes.bool,
1310
1308
  disableIntervalMomentum: PropTypes.bool,
1309
+ useExperimentalSnap: PropTypes.bool,
1311
1310
  onBeforeSnapToItem: PropTypes.func,
1312
1311
  onSnapToItem: PropTypes.func,
1313
1312
  };
@@ -1337,5 +1336,6 @@ Carousel.propTypes = {
1337
1336
  useScrollView: !Animated.FlatList,
1338
1337
  vertical: false,
1339
1338
  isCustomScrollWidth: false,
1340
- disableIntervalMomentum: false
1339
+ disableIntervalMomentum: IS_ANDROID,
1340
+ useExperimentalSnap: IS_ANDROID
1341
1341
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/carousel",
3
- "version": "0.0.20",
3
+ "version": "0.0.25",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {