-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tabs flag for swiping not working #3163
Comments
Ok I just fixed by doing this "cheat". To make tabs to swipe, make sure you have set To disable the tabBarComponent you have to return null as a component. To do so just do By adding these 2 to a Tabs component it will make your tabs swiping without even setting |
It seems to be removed from React Navigation 2.x. Should we return it back? ;) |
@aksonov I have been trying to make my app with this navigation to work perfectly but its struggling to do the job and its a shame as its a very good library, easy to use as well. But after the latest update a lot of features not working anymore. I implemented my custom header in navBar I think which works fine, but checking the current screens in different components is a mess as it will never return the current screen but the one is being mounted from. And the back button on the android is not working as well. |
We are using our library on production, too pity that it doesn't work for you. You may create separate ticket for every issue you have with reproducible fork of Example project. For Android issues please ask @daviscabral |
Btw, |
@aksonov Thanks for your help! Because I am using a custom header, all the logic goes there as well and without keeping a track in the header what screen is mounted is pretty hard to handle all the logic. |
@SourceCipher Could you create new issue for this problem? It seems hard to fix, |
I am also strugling with the onNavigateStateChange life cycle. Any chance for us to implement a side life cycle instead of route state? So people can subscribe to it instead. |
Could you clarify?
… On 10 Aug 2018, at 17:11, Davis Z. Cabral ***@***.***> wrote:
I am also strugling with the onNavigateStateChange life cycle. Any chance for us to implement a side life cycle instead of route state? So people can subscribe to it instead.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Of course. I meant about adding something like a |
Any idea how? RNRF doesn’t manage state anymore (maybe 5.0 release will do, but it is a lot of work).
… 10 авг. 2018 г., в 17:48, Davis Z. Cabral ***@***.***> написал(а):
Of course. I meant about adding something like a onNavigateStateWillChange on our side - to allow some kind of preparation for the next component.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#3163 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQpcQkormZrBzFCNqdLq3aPMnR2tIqkks5uPas_gaJpZM4V0t53>.
|
I was actually thinking in something unconnected to state - to really move away from this idea a bit. Have you take a look at Maybe allow users to connect whatever they want (with the new context API - I am noticing that it might be possible to postpone use of redux or mobx a bit in some cases). |
Users can use |
Yeah - that's true. I am overcomplicating with this idea - just shooting to see if we could end with something around it - but you are correct - let's keep things simple. ;-) |
@aksonov I implemented the current screen logic and all works fine.. The problem is still the long delay between the card press and the screen mount. It takes a while for the screen to appear for some reason |
@SourceCipher could you provide an example where I am able to see it? It seems that the lifecycle of the components now are all mounted at once right after loading the app. |
@daviscabral Which should make screens switching super fast, but thats not the case. I have a custom header component and there is a profile icon. when you press it it simply calls this |
Can you try last code from master? There was some updates related to |
@daviscabral you mean v4.0.0? |
No - master as in master branch:
|
|
It was not intended :( |
@daviscabral Could you try to fix legacy tabbar before new release? |
Sure - also fixing #3258 before it. |
When I enable, swipe, the tab bar goes to top in Android, even with the setting tabBarPosition: 'bottom', how do I fix this? |
Can anybody help me how to refresh or reload the back stack scenes in react-native-router-flux? |
legacy={true} |
Some additional info, I can confirm this is working as described. But if you use a custom EDIT: Solved by using EDIT 2: It's not working in android. The state of the scene and the state of the tabBarComponent gets desynchronized somehow. |
Version
Tell us which versions you are using:
Expected behaviour
When the flag swipeEnabled is set to true, user should be able to swipe through the tabs
I have my tabs layout like this:
The same goes for not be able to hide the tab Bar Component which is at the bottom by default.
Actual behaviour
Swiping is not available. Only works switching via bottom nav
The text was updated successfully, but these errors were encountered: