Skip to content

Commit 23efdd5

Browse files
committedSep 13, 2017
doc(CHANGES): add v2.0.0 changelog
1 parent cfa3806 commit 23efdd5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

‎CHANGES.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## v2.0.0
2+
3+
This is the first major update since we've taken over this project. It includes numerous changes, breaking changes, and perfs improvements.
4+
5+
Huge thanks to [@chrusart](https://github.com/chrusart) who started these changes and helped highlighting problems.
6+
7+
* **Breaking change** : remove the `loader`. Instead, you should use the `imageComponent` prop and implement your own image loading logic yourself so it doesn't affect the gallery's performance.
8+
* A demo has been added ! It shows a basic usage of this module, with a slide counter on top and captions displayed at the bottom. Un-comment `addImages()` and `removeImages()` to check out the new improvements and fixes when the gallery re-renders.
9+
* Refactor : `TransformableImage` and `ViewPager` dependencies are now backed-in the module. They weren't being maintained, so we won't have to wait for their respective pull requests to be merged. This allowed us to fix numerous bugs, faster.
10+
* Refactor : Huge refactor of the whole codebase. We've rewritten a lot of code, most of the logic is intact but the library is now easier to read, and more importantly, it follows the good practices of react. There is still work to do, but most of it has been done.
11+
* Removed the `initialListSize` prop. This was confusing, and it's not required anymore.
12+
* Feature : the underlying `ListView` has been replaced with `FlatList` ! This should result in a significant improvement in performance.
13+
* Feature : `errorComponent` prop. You can now provide a function to render the page of an image that couldn't be loaded. This is usually rendered with a remote image that has a broken URL.
14+
* Feature : `scrollViewStyle` prop. Style the `FlatList` as you wish.
15+
* Feature : you can now use the `dimensions` key in your remote images just like with your local images. That circumvents the `Image.getSize` logic, it's a little perf boost if you already know the dimensions of your remote images.
16+
* Fix : the gallery won't crash if your remote image's URL is broken. It will now display a nice error that you can customize with the `errorComponent` prop.
17+
* Fix : the gallery won't crash when adding or removing images.
18+
119
## v1.1.0
220

321
* Feature : add `onLongPress` prop

0 commit comments

Comments
 (0)
Please sign in to comment.