question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tabs flag for swiping not working

See original GitHub issue

Version

Tell us which versions you are using:

  • react-native-router-flux 4.0.0-beta.40
  • react-native 0.55.4

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:

 <Tabs key="tabbar" tabs={true} swipeEnabled={true} showLabel={false} hideNavBar style={{ marginTop: -50 }} type={ActionConst.RESET}>
   <Scene key="contacts" component={Contacts} hideNavBar type={ActionConst.RESET}/>
   <Scene key="chats" component={Chats} hideNavBar initial={true} type={ActionConst.RESET}/>
   <Scene key="profile" component={Profile} hideNavBar type={ActionConst.RESET}/>
 </Tabs>

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:29 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
wguillen3commented, Apr 27, 2019

<Router> <Tabs key="root" tabs={true} legacy={true} swipeEnabled={true} tabBarPosition={'bottom'}> <Scene hideNavBar key="login" component={Login} title="Login"/> <Scene hideNavBar key="register" component={Register} title="Register"/> <Scene hideNavBar key="home" component={Home}/> </Tabs> </Router>

legacy={true} this works for me

1reaction
aksonovcommented, Aug 10, 2018

@SourceCipher Could you create new issue for this problem? It seems hard to fix, onNavigationStateChange is called AFTER react components are mounted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Chrome on Android 10) Cannot swipe down for tab switcher
Just recently I discovered that the gesture no longer works, and I have to use the button to open tab view.
Read more >
[Bug] No preview when swiping between tabs · Issue #12873 ...
If we see thumbnails in the tab tray, we should be able to load the preview for the gesture, but that is clearly...
Read more >
Tab Grid Layout stopped working - Google Chrome Community
I like the new tab grid design in Android Chrome. It used to work, I set the flag to Enable without auto group,...
Read more >
Chrome gets swipe gestures to navigate back or forward
Another day, another Chrome flag. The browser is starting to let users swipe to go back to the previous page they had open,...
Read more >
Organize your tabs with Tab Groups in Safari on iPhone
Tap the Tabs button to view the open tabs in that Tab Group. · Touch and hold the tab you want to pin....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found