Skip to content

Commit 2d7b557

Browse files
author
bd-arc
committed
chore(package): bump to 3.1.0, update changelog and readme
1 parent 63a63d4 commit 2d7b557

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
## v3.1.0
2+
* `Pagination` component: add new props for advanced customization
3+
14
## v3.0.0
5+
###WARNING
6+
* **Do not use this version as some temporary code was pushed to `npm` by mistake. Make sure to use version `3.1.0` instead.**
27
### Breaking changes
38
* Plugin is now built on top of `FlatList`, which allows for huge performance optimizations. From now on, items must be rendered using props `data` and `renderItem`.
49
### General

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ animationFunc | Animated animation to use; you must provide the name of the meth
193193
animationOptions | Animation options to be merged with the default ones. Can be used without `animationFunc`. Note that opacity's easing will be kept linear. | Object | `{ duration: 600, easing: Easing.elastic(1) }`
194194
containerCustomStyle | Optional styles for Scrollview's global wrapper | View Style Object | `{}`
195195
contentContainerCustomStyle | Optional styles for Scrollview's items container | View Style Object | `{}`
196-
inactiveSlideOpacity | Value of the opacity effect applied to inactive slides | Number | `1`
196+
inactiveSlideOpacity | Value of the opacity effect applied to inactive slides | Number | `0.7`
197197
inactiveSlideScale | Value of the 'scale' transform applied to inactive slides | Number | `0.9`
198198
slideStyle | Optional style for each item's container (the one whose scale and opacity are animated) | Animated View Style Object | {}
199199

@@ -211,7 +211,7 @@ The component is built on top of the `FlatList` component, meaning it inherits f
211211

212212
You can use almost all props from this three components, but some of them can't be overriden because it would mess with our implementation's logic.
213213

214-
Here are a few useful props regarding carousel's **style and "feeling"**: `showsHorizontalScrollIndicator`, `scrollEnabled` (if you want to scroll only programmatically), `overScrollMode` (android), `bounces` (ios), `decelerationRate` (ios), `scrollEventThrottle` (ios).
214+
Here are a few useful props regarding carousel's **style and "feeling"**: `scrollEnabled` (if you want to disable user scrolling while still being able to use `Carousel`'s methods), `showsHorizontalScrollIndicator`, `overScrollMode` (android), `bounces` (ios), `decelerationRate` (ios), `scrollEventThrottle` (ios).
215215

216216
And here are some useful ones for **performance optimizations and rendering**: `initialNumToRender`, `maxToRenderPerBatch`, `windowSize`, `updateCellsBatchingPeriod`, `extraData`, `removeClippedSubviews` (the latter may have bugs, as stated in [RN's doc](https://facebook.github.io/react-native/docs/flatlist.html#removeclippedsubviews)). The first three are already implemented with default parameters, but you can override them if they don't suit your needs.
217217

@@ -273,7 +273,7 @@ Version `3.0.0` introduced a `<ParallaxImage />` component, an image component a
273273

274274
![react-native-snap-carousel parallax image](http://i.imgur.com/6iIb4SR.gif)
275275

276-
You can find the documentation for this component [here](https://github.com/archriss/react-native-snap-carousel/blob/flatlist/src/parallaximage/README.md).
276+
You can find the documentation for this component [here](https://github.com/archriss/react-native-snap-carousel/blob/master/src/parallaximage/README.md).
277277

278278
## `Pagination` component
279279

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
},
88
"dependencies": {
99
"react": "16.0.0-alpha.12",
10-
"react-native": "~0.47.1",
11-
"react-native-linear-gradient": "^2.1.0",
10+
"react-native": "~0.47.2",
11+
"react-native-linear-gradient": "^2.3.0",
1212
"react-native-snap-carousel": "file:../"
1313
},
1414
"devDependencies": {
15-
"babel-preset-react-native": "1.9.1"
15+
"babel-preset-react-native": "3.0.1"
1616
}
1717
}

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": "3.0.0",
3+
"version": "3.1.0",
44
"description": "Swiper component for React Native with previews, snapping effect, parallax images, performant handling of huge numbers of items, and RTL support. Compatible with Android & iOS.",
55
"main": "src/index.js",
66
"repository": {

0 commit comments

Comments
 (0)