-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nav: Enable swiping between top tabs.
In one of the recent React Navigation upgrades, a rapid sideways scroll animation was added for when you tap another tab to switch to it. This feels better than having no animation, but it really suggests that swiping ought to work to switch between tabs [1]. We haven't been offering that; so, do that. [1] #4249 (comment) Fixes: #3997
- Loading branch information
1 parent
991b036
commit ad0b5f3
Showing
3 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,5 +45,6 @@ export default createMaterialTopTabNavigator( | |
showLabel: true, | ||
showIcon: false, | ||
}), | ||
swipeEnabled: true, | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,7 @@ const getReactionsTabs = ( | |
borderWidth: 0.15, | ||
}, | ||
}), | ||
swipeEnabled: true, | ||
}), | ||
); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters