This repository was archived by the owner on Nov 27, 2022. It is now read-only.
Change tab position programmatically & get current tab position #1285
Unanswered
Softkeydel
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You have the tab position in your state. To access current position, you use your |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current behavior
const renderScene = ({ route, jumpTo }) => { switch (route.key) { case 'music': return <MusicRoute jumpTo={jumpTo} />; case 'albums': return <AlbumsRoute jumpTo={jumpTo} />; } };
Here jumpTo() is accessible to the child components.
Expected behavior
Change tab position programmatically & get current tab position
I need to change the tab position on a button click on the same component the tab view is residing & aslo get the current tab position.
Please help
Beta Was this translation helpful? Give feedback.
All reactions