nuno / TiCollectionView

UICollectionView / GridView for Appcelerator Titanium
MIT License
111 stars 43 forks source link

Fix example-code #70

Closed hansemannn closed 6 years ago

hansemannn commented 7 years ago

I'm in the early stage of testing my CollectionView changes and thereby I noticed that the example-code doesn't work when you through it into an example app (crashing around require("CollectionView"), probably because it's copied from an Alloy-example. So I fixed that, renamed the require-statement and removed some of the default layout properties (views fill the height and width by default, so height, width, top and left should not be necessary).

Oh, and I noticed that it does NOT crash using run-on-main-thread. Not sure if it's because of my local fixes or because of this simple example.

nuno commented 7 years ago

testing...

hansemannn commented 7 years ago

One second! Adding the event-listener as well. EDIT: Done.

hansemannn commented 6 years ago

@nuno Updated against latest master!