Andrey G.
Andrey G.
man, i understand your position about that's it's not component specific. but let's consider this: 1) proposed that your component works fine with (UITableView, UICollectionView) - and here i don't...
to summ: UITableView/UICollectionView are not UIScrollView. It's subclass of it with own features and workarounds about these features. If insist that, user must consider UITableView/UICollectionView as UIScrollView and forget about...
Well, to support UITableView you must not consider table like isolated UIScrollView with only rows, because that's not true. That's UIScrollView that has: a) header, b) some rows c) footer....
nope, if you will see commented code - i tried both: scrollRectToVisible and setOffset too. scrollToIndexRow works correctly, when the rest 'scrolls' way - not.
1) class names based only +1 There is quite good article about this subject: http://jamesknelson.com/why-you-shouldnt-style-with-javascript/ 2) ui lib should ship without a theme +1 3) ui components should be requirable...
also it's good idea to separate validation. E.g. at my current project i'm using: https://github.com/davidkpiano/react-redux-form and quite happy with it.