added controlledItemIndex so the central can be controlled by parent#3
added controlledItemIndex so the central can be controlled by parent#3ganmor wants to merge 2 commits intoroeierez:masterfrom
Conversation
|
I like the use of componentWillReceiveProps. |
|
Regarding controlling the animation duration. |
|
I will submit a PR. notice the scrollWithAnimation. Thanks for the answer anyway, I will try to submit a different PR with a possible solution for the scrollWithAnimation. |
|
PR updated |
Sorry for not getting back earlier about the previous pull request, and thanks for integrating the changes.
This pull request allow the carousel to be controlled by the parent component and thus the url.
Also do you have any thought on how to implement a scroll method that takes velocity / animation duration as parameters ? ( if the scroller is going to be controlled by the url it would be much more convenient to have those exposed )