-
Notifications
You must be signed in to change notification settings - Fork 157
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
How will i do a pagination or lazy loading? #32
Comments
Your issue doesn't follow our guidelines. Please fix the following:
Click here for details. Thank you! 🙏 |
Hey @arunkrishna39, Sorry I don't have either functionality implemented, but I do plan on implementing Lazy Loading when my current application development process is at this stage. |
@brh55 Eagerly waiting! Any time estimates? |
@brh55 Now that masonry implements |
@kmcgill88 Flatlist has been merged, but the |
@srameshr do you think that if we add our own implementation in FlatList's onEndReached() and onRefresh(), we could do ininite scroll/pagination out of the box? |
What I am doing right now is, passing refresh component to ListView. |
I've done a FlatList rewrite within the experiment branch -- it works, but not efficiently. Looks to be some sort of delay with the re-render time. |
guys, I dig deep into the code, and saw that FlatList is present inside Column.js (master branch). Now, I tried to add methods like onEndReached(). I noticed it is called during rendering when images are loading.. But if I try to manually scroll down, it doesn't get called. Any idea what to do so we can have FlatList's onEndReached() method works to enable pagination? |
@brh55 @vvavepacket I am on the master branch and there is a big delay during inital rendering. There are two things here:
I am guessing that the ListView inside Masonry.js is responsible for the terrible rendering time. |
If ListView is responsible then it's most likely the dataSource diff function. A quick way to check this is with removing line 19 + 42 in masonry, and replacing rowHasChanged with returning true and seeing if perhaps this is where the issue may lie. |
@srameshr Could you give that a try on your app, and see if you notice any improvements? |
@brh55 Nope! Its still the same. It takes 15 seconds to render just one image. |
@brh55 I got it. I think its because of the remote images. If I serve it with static images, it renders in a flash but when the images are remote, it takes 15 seconds at minimum. My bad! My images take 14 seconds to download on a web browser! Crazy! Im on AWS M4 xLarge instance. |
What are your image sizes? It's deceiving on the apps and this component because they are resizing, but good role of thumb is 300kb or less. Unless it's high def is important of course. |
2.7 MB 😝 |
@srameshr best way to kill my bandwidth 🗡 |
@brh55 Sorry for that. Il make sure I cross verify before posting an issue. |
@srameshr haha no worries |
Were you guys able to implement pagination by using flatlist's onRefresh/onEndReached() methods? |
@vvavepacket Since the Masonry.js file still has ListView, I do something like #51. |
No, I have not yet tried that. But hopefully by the time I need it, ListView gets replaced by FlatList under masonry which supports InfinteLoading and Pull to refresh. |
I would suggest just returning the |
Hello guys! Is it possible now to do |
@brh55 so infinite loading is a feature that lot of people are waiting for. So, until the |
@srameshr I feel you, give me some time to think about a good way to implement this. I have two possible ways, but unsure of potential side-effects and can foresee a lot of potential bugs arising |
@brh55 let us know if u need to test out your idea :) we are ready testers any time :) , this feature looks promising and is in great need and will make plugin more awesome |
Hey guys! Any news about the infinite loading/scroll feature? Is it working now? |
+1
…On Mon, Mar 26, 2018, 14:27 David ***@***.***> wrote:
Hey guys! Any news about the infinite loading/scroll feature? Is it
working now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH6U2r3KxDomAG4DfJKLQ-Y-5G2T-u4Qks5tiTL2gaJpZM4ObS55>
.
|
@davidsamacoits @vvavepacket Sorry ya'll been extremely busy at work and have had to put off a lot of OSS activities. So I'm definitely looking for co-maintainers, open for PR's and we can put together an implementation on this. |
Hi people! Regarding this awesome library, Has anyone got an example with Relay? just wondering! Best regards! |
@brh55 is this done? Eagerly waiting for this feature. |
@abhinav011085 There is infinite scroll, it's not actually documented officially, but it's shown in the example. Here is how it's passed in as props:
|
No description provided.
The text was updated successfully, but these errors were encountered: