From ea24618425512fd0d242d47cf5a87c11062ddf90 Mon Sep 17 00:00:00 2001 From: bd-arc Date: Mon, 18 Sep 2017 19:05:22 +0200 Subject: [PATCH] refactor(package): bump to 3.2.2, update changelog and doc --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75323e61d..ccda33156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## v3.2.2 +* Fix RTL issues +* Fix issue with active item when `enableMomentum` was set to `true` +* Fix issue with overlapping items (thanks [@henninghall](https://github.com/henninghall)) +* `ParallaxImage` component: allow overriding default styles +* `Pagination` component: adapt to RTL layouts + ## v3.2.1 * Fix issue with active item when no callback has been specified (introduced in version `3.2.0`) diff --git a/README.md b/README.md index 34ce1b874..f815f4364 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Swiper component for React Native featuring **previews**, **snapping effect**, * ### Archriss' "Ville d'Aix-en-Provence" app -**This app is available on [Android](https://play.google.com/store/apps/details?id=fr.archriss.aixmobile.app) and [iOS](https://itunes.apple.com/fr/app/ville-daix-en-provence/id494548366?mt=8). It uses **version 3.2.0** of the plugin, with `FlatList`'s implementation and [parallax images](#parallaximage-component). +**This app is available on [Android](https://play.google.com/store/apps/details?id=fr.archriss.aixmobile.app) and [iOS](https://itunes.apple.com/fr/app/ville-daix-en-provence/id494548366?mt=8).** It uses **version 3.2.0** of the plugin, with `FlatList`'s implementation and [parallax images](#parallaximage-component). ![react-native-snap-carousel archriss aix](http://i.imgur.com/pPm0csc.gif) ![react-native-snap-carousel archriss aix](http://i.imgur.com/UFsPlz2.gif) @@ -462,9 +462,9 @@ The easiest workaround is to add `jest.unmock('ScrollView')` before importing th ### RTL support (experimental) -Since version 2.1.0, the plugin is compatible with RTL layouts. Our implementation relies on miscellaneous hacks that work around a [React Native bug](https://github.com/facebook/react-native/issues/11960) with horizontal `ScrollView`. +Since version 2.1.0, the plugin is compatible with RTL layouts. Our implementation relies on miscellaneous hacks that work around a [React Native bug](https://github.com/facebook/react-native/issues/11960) with horizontal `ScrollView`. As such, this feature should be considered experimental since it might break with newer versions of React Native. -As such, this feature should be considered experimental since it might break with newer versions of React Native. +Note that you may want to reverse the order of your data array for your items to be displayed in the proper RTL order. We've tried implementing it internally, but this led to numerous and unnecessary issues. You'll just have to do something as simple as `myCustomData.reverse()`. ## TODO diff --git a/package.json b/package.json index 2355038e3..343165f06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-snap-carousel", - "version": "3.2.1", + "version": "3.2.2", "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.", "main": "src/index.js", "repository": {