-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi, I'm trying to scroll to a specific item but I'm stucked.
In my last test I used a modified scroll function (without the callback):
this.refs.scrollingMenu.scrollToIndex(i);
but it seems that the widths state is empty (this.state.widths[itemNum]).
I understand that this state is pushed in the loop function and the width is calculated with onLayout. I just don't get how to reproduce this onLayout in another function.
Any lead?
AlessandroAnnini, arminsal1 and xstable
Metadata
Metadata
Assignees
Labels
No labels