You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: