-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[V2] Toptabs are not showing up, regression in newest version of RNN #4485
Comments
I am also facing this issue with "react-native-navigation": "^2.3.0"
|
@guyca Any suggestions would be great i am migrating from v1 to v2 and this is crucial for me mate |
Hi i appreciate you guys being really busy and taking out of your time to respond but i have a project that's already on play store and there is a critical update that i need to push and this issue is a real road block for me. I would just appreciate if you just point me to what might be causing the issue and i will try to patch it my self until you make a proper fix in your next update. |
Hey there, I'll look into this issue asap. |
is there also a plan to add topTabs for iOS? @guyca |
I can't get topTabs to work in Android or IOS !! |
I tried to downgrade to [email protected] as @the-friyia, and the top tabs still does not appear. Maybe it's because of my react-native version. However, if you see #4357, there is a workaround to get topTabs working on Android:
line 169 in the file |
I just started a new project and I also can't see the topTabs on Android and on iOS it crashes. Any idea how to solve this? I can't downgrade, and we really need the topBar and bottomBar for Android/iOS. @jmcartlamy I tried your workaround, but it didn't work for me. I'm on RN 0.58.0 and react-native-navigation 2.12.0 |
@jmcartlamy I tried your solution and it worked. The remaining problem is when I invoke |
It is buggy and not working anymore. There is no proper documentation for this. I am getting same result and crashing on click. I want to use topTab with sideMenu. react : 16.6.3 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Seems even with the latest version, the top tabs don't show properly. |
Is this issue resolved? If yes, is there any documentation that I can follow to setup top tabs within bottom tab navigation? |
I got topTabs working within one of the screens of bottomTabs. Note that the topBar needs to be given a height of 100. "react": "^16.8.6", Issues -
|
If you want stack topTabs try this one Navigation.setRoot({
root: {
stack: {
options: {
topBar: {
title: {
text: "Message",
fontSize: 22
},
height: 100,
backgroundColor: 'green'
},
topTabs: {
selectedTabColor: "#12766b",
unselectedTabColor: "red",
fontSize: 6,
}
},
children: [
{
topTabs: {
children: [
{
component: {
name: "SCREENS.CHATS",
options: {
topTab: {
title: "CHATS"
}
}
}
},
{
component: {
name: "SCREENS.STATUS",
options: {
topTab: {
title: "STATUS"
}
}
}
},
{
component: {
name: "SCREENS.CALLS",
options: {
topTab: {
title: "CALLS"
}
}
}
}
]
}
}
]
}
}
}); |
This is still not working for me |
Did you checked with current version of RNN 2.19.0 and RN 0.59.8? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
Can anyone tell me what is the current status of topTabs in this project? Following the examples provided here haven't been able to get them to work and there is little mention of the feature in the documentation. The comment referenced above from the v3 MR suggests the topTabs should still be working, beyond some deprecated features. |
+1 badly need documentation for this. @syedabuthahirm code works, but I do not want to setRoot in my app, I want to create tabs dynamically for a particular screen within a navigation stack embedded in one tab of the parent tab bar controller |
if you want to push a nested TopTab set of components (screens) within a bottom tab view |
any way to disable horizontal scrolling between tabs? |
Just want to point out that issue is still there with RNN 4.3.0 (RN 0.61.5). None of the suggested workaround works and in the best case I can swipe screen sideways but the tab names never appears. For instance this is what I do:
I only checked on Android, not sure about iOS. EDIT: Do developers takes into account this issue or since it's closed I better open a new one? |
+1 |
RNN can you please land with some fix on this? Toptabs is all broken! Or if it is not, please suggest how to use it on stack. R: 16.11.0 I tried to follow this, but no TopBar, no top-tabs. Tested on iOS. Thanks! |
Can we have Tabs? Can't apply them for iOS :( Do you have some instructions? |
Issue Description
There has been a regression in Top Tabs Navigation for React-Native-Navigation. After version 2.0.2459 topTabs will no longer appear.
I am currently using the code below with version 2.2.5, however, that code allows me to swipe right and left and the app will transition screens BUT tabs themselves will not appear.
If I downgrade to 2.0.2459 again, the top tabs once again appear.
Steps to Reproduce / Code Snippets / Screenshots
Environment
The text was updated successfully, but these errors were encountered: