-
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
Performance Issue #33
Comments
Hey @narychen great timing on this issue as I'm working on v0.3.0. So I see what your saying and I definitely agree you. I've been thinking about how to improve upon this for My current proposed implementation is the use of multiple |
Multiple FlatList each will have its own scrollView. If you have three columns you will be able to scroll on three columns. How will you solve this? |
|
As from the react-native document 'removeClippedSubView is not belong only to ListView or ScrollView but the basic View.
So we may build the View contains the subviews with overflow:hidden and removeClippedSubviews set to true. It may be work for the performance issue. |
@narychen
So I'm now that I'm using Fortunately there isn't any scrolling issues because Please test and try out the implementation on v0.3.0 branch, and let me know of any feedback. |
@brh55 How is progress on this? |
@kmcgill88 needs to some additional user testing, but implemented on v0.3.0 branch |
@brh55 I can give it a go and let ya know. |
I think you should open a PR for this branch. Might be easier to discuss. I think you are missing this on the flat list, https://facebook.github.io/react-native/docs/flatlist.html#keyextractor EDIT: Looks like you do have it,... hmmm |
@kmcgill88 Yeah I realize this as I was going through the code just now. Might have gotten carried away working on resolving local asset support. |
Performance updates now merged into the latest release (^0.4.0) of react-native-masonry 👍, thanks @narychen ! |
@brh55 You are welcome. |
I read the code and found the row of ListView is just used as masonry column.
If there are three column on your masonry there will be only three rows in the ListView.
The ListView or ScrollView will remove the views of images out of vision and keep the memory low.
But here it has only limited rows of columns.
As the image number grows your column view will become bigger and bigger and at last it will crash the whole app.
The text was updated successfully, but these errors were encountered: