-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom data source like VirtualizedList does #88
Comments
It is already possible. DataProvider can be extended into something custom. Check the following file: https://github.com/Flipkart/recyclerlistview/blob/master/src/core/dependencies/DataProvider.ts Inherit DataProvider and override |
Worked, thanks. |
@naqvitalha have one question. I looked at the source to override. recyclerlistview/src/core/dependencies/DataProvider.ts Lines 30 to 32 in b7c23d2
To redefine the function, need to access the
What about creating |
@black7375 Use |
@wxsms Like this.
|
@punksta Hi, could you pls show your solution here? I've tried the solution provided by @naqvitalha , by it doesn't work. It just show a blank screen without any errors. Thank you in advance! |
Never mind. found out that I have to override not only |
Thanks for cool library.
DataProvider supports only array as data source. I want to use it with Immutable.js data structures
The text was updated successfully, but these errors were encountered: