-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Is there a way to change the tab view through programming ? #20
Comments
This would definitely be a nice feature 👍 |
👍 |
I've come up with a quick-fix solution. Will post soon. Probably not elegant but at least it's working. It involves passing the |
Give ScrollableTabView a See #16 |
what @irfaan said ;) |
I still can't get this to work unfortunately, can you provide a full example? Thanks |
@dannyprice1990 Can you share the pertinent pieces of your application in a gist or put something up on http://rnplay.org? |
@brentvatne, this is beyond the scope of your package, but do you know how to achieve this? |
Just stumbled on your issue and found a solution (a bit messy, but it works): In the parent component (ScrollableTabView)Like you did, add
We could try to pass
In the child componentWe have now access to Hope this helps, it works for me! |
@irfaan @brentvatne Alongside goToPage(), can we also pass some props to the target page? |
Is there any way by which we can change the current tab we are viewing to the index one we want through code without clicking ?
like:
setTabView
function or so ?The text was updated successfully, but these errors were encountered: