Skip to content
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

fixed library list rendering way in a single map func using absolute pos #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ochanje210
Copy link
Contributor

@ochanje210 ochanje210 commented Jan 17, 2017

I am changing the way of rendering library list from two columns using two arrays to single one. This change will make having dynamic sorting animation easier. Currently, drag&drop func is not implemented here yet. Since this is experimental, you don't have to consider this as high priority.

for (let i = 0; i < this.state.dataSource.length; i = i + 1) {
this.state.initialBookColor.push(generateRandomColor());
}
this.panResponder = PanResponder.create({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this panresponder is not being used. I will either delete this or update it to use it

};

shouldComponentUpdate(nextState) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is in order to optimize performance. Here is the ref FYI: https://facebook.github.io/react/docs/optimizing-performance.html#shouldcomponentupdate-in-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant