Closed jrtberlin closed 1 year ago
Hi @jrtberlin this is a know issue and sadly so far we haven't been able to do anything about this, would you be willing an try and contribute in order to fix it?
@enahum Sorry, I dislike working with react native. I thought that this should be documented publicly. Can you point into a component where changes are required? Maybe someone else picks this up.
No worries at all @jrtberlin thanks for bringing this up.
Initial work should be done in the dependency library react-native-navigation and then either submit a PR to that repo or patch it locally (preferably the former) then apply the needed changes in the mattermost app (update the dependency or apply the patch / Modify the navigation actions as needed in app/actions/navigation
Can another look be taken at this? Mattermost is practically unusable because of this issue when gesture navigation is enabled.
Other apps like Slack allow for the entire content view to be right-awipeable to open the navigation drawer. If mattermost did the same, it would completely resolve the problem. Right now, nothing at all happens when right-swiping in the middle of the screen, so it would only be beneficial.
Closing as this should not be applicable to V2.
Summary
The Android 10 "back" gesture conflicts with the swipe gesture to open the channel drawer. This situation results in accidental app closes. The GIF shows the situation and a workaround (angled swipe):
Environment Information
Steps to reproduce
On Android 10 try to open the drawer with the swipe gesture.
Expected behavior
Swiping from the left edge should open the channel drawer.
Possible fixes
There are two possible improvements: