Skip to content

Commit ad0b5f3

Browse files
committed
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] zulip#4249 (comment) Fixes: zulip#3997
1 parent 991b036 commit ad0b5f3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/main/StreamTabs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ export default createMaterialTopTabNavigator(
4545
showLabel: true,
4646
showIcon: false,
4747
}),
48+
swipeEnabled: true,
4849
},
4950
);

src/reactions/MessageReactionList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const getReactionsTabs = (
9595
borderWidth: 0.15,
9696
},
9797
}),
98+
swipeEnabled: true,
9899
}),
99100
);
100101
};

src/sharing/SharingScreen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const SharingTopTabNavigator = createMaterialTopTabNavigator(
5555
showLabel: true,
5656
showIcon: false,
5757
}),
58+
swipeEnabled: true,
5859
},
5960
);
6061

0 commit comments

Comments
 (0)