Skip to content

Commit 55531e8

Browse files
author
bd-arc
committed
chore(misc): bump version to 2.1.2 and add release notes
1 parent a0afcaf commit 55531e8

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v2.1.2
2+
* Do not trigger `onSnapToItem` when snapping back to the same slide (thanks [@rgabs](https://github.com/rgabs))
3+
* Add prop `carouselHorizontalPadding` to override container's inner padding (thanks [@skeie](https://github.com/skeie))
4+
15
## v2.1.1
26
* Ensure compatibility with RN 0.43 (previous version of plugin's dependency `react-addons-shallow-compare` was breaking with React 16)
37
* Fix issue with padding on iOS that could cause the carousel to snap back when its last item was clicked
@@ -10,7 +14,7 @@
1014

1115
## v2.0.3
1216

13-
* Prevent error when carousel has only one child (thanks [@kevinvandijk](https://github.com/kevinvandijk) !)
17+
* Prevent error when carousel has only one child (thanks [@kevinvandijk](https://github.com/kevinvandijk))
1418
* Fix issue when appending dynamic slides (the first one was ignored)
1519
* Fix edge case that prevented the first slide from being focused when swiping back with momentum enabled
1620
* Bump example's RN version to 0.42.3
@@ -21,11 +25,11 @@
2125

2226
## v2.0.1
2327

24-
* Fix un-handled exception with interpolators (thanks [@chitezh](https://github.com/chitezh) !)
28+
* Fix un-handled exception with interpolators (thanks [@chitezh](https://github.com/chitezh))
2529

2630
## v2.0.0
2731

28-
* Items are now direct children of the <Carousel> component, which makes it easier to use (thanks [@Jonarod](https://github.com/Jonarod) !)
32+
* Items are now direct children of the `<Carousel />` component, which makes it easier to use (thanks [@Jonarod](https://github.com/Jonarod))
2933
* Props `items` and `renderItem` have been removed
3034

3135
## v1.6.1
@@ -34,16 +38,16 @@
3438

3539
## v1.6.0
3640

37-
* Add `enableMomentum` prop
41+
* Add prop `enableMomentum`
3842
* Fix an infinite-loop on iOS with momentum enabled
3943
* Fix the snapping effect when releasing touch without interia on iOS with momentum enabled
4044
* Fix autoplay on Android, it should start and stop properly and stop being triggered while swiping
41-
* Use `View.propTypes.style` instead of `PropTypes.number` in styles validation (thanks [@pesakitan22](https://github.com/pesakitan22) !)
45+
* Use `View.propTypes.style` instead of `PropTypes.number` in styles validation (thanks [@pesakitan22](https://github.com/pesakitan22))
4246

4347
## v1.5.0
4448

45-
* Items length can now be changed on-the-fly (thanks [@superical](https://github.com/superical) !)
46-
* Now handling momentum (thanks [@FakeYou](https://github.com/FakeYou) !)
49+
* Items length can now be changed on-the-fly (thanks [@superical](https://github.com/superical))
50+
* Now handling momentum (thanks [@FakeYou](https://github.com/FakeYou))
4751

4852
## v1.4.0
4953

@@ -56,18 +60,18 @@
5660

5761
## v1.3.0
5862

59-
* Pass the item data as the 2nd param of onSnapToItem callback
63+
* Pass the item data as the 2nd param of `onSnapToItem` callback
6064

6165
## v1.2.1
6266

6367
* Fix reference call when the component has been unmounted
6468

6569
## v1.2.0
6670

67-
* Add onSnapToItem prop
71+
* Add prop `onSnapToItem`
6872

6973
## v1.1.0
7074

7175
* Center slides properly
7276
* Handle one slide only
73-
* Add props 'inactiveSlideScale', 'inactiveSlideOpacity', 'containerCustomStyle' and 'contentContainerCustomStyle'
77+
* Add props `inactiveSlideScale`, `inactiveSlideOpacity`, `containerCustomStyle` and `contentContainerCustomStyle`

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Prop | Description | Type | Default
108108
------ | ------ | ------ | ------
109109
animationFunc | Animated animation to use. Provide the name of the method | String | `timing`
110110
animationOptions | Animation options to be merged with the default ones. Can be used w/ animationFunc | Object | `{ easing: Easing.elastic(1) }`
111+
carouselHorizontalPadding | Override container's inner padding (needed for slides's centering). **Warning: be aware that overriding the default value can mess with carousel's behavior.** | Number | `(sliderWidth - itemWidth) / 2`
111112
containerCustomStyle | Optional styles for Scrollview's global wrapper | ScrollView Style Object | `{}`
112113
contentContainerCustomStyle | Optional styles for Scrollview's items container | ScrollView Style Object | `{}`
113114
inactiveSlideOpacity | Value of the opacity effect applied to inactive slides | Number | `1`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-snap-carousel",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Swiper component for React Native with previews and snapping effect. Compatible with Android & iOS.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)