You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Since react-native-gesture-handler is enabled in the code, dragging left across the screen opens up the Drawer. There are two Drawer used one showing CategoryTree and other showing DrawerScreen for Category component. And as DrawerScreen drawer is the top most Drawer, swiping left across any screen whether Home, Cart, Login etc, it opens up.
Expected behavior
CategoryTree Drawer should be only accessible from HomeScreen, Login or Account (depending upon user is authenticated or not) and Cart. As soon as other screen are added in their respective stacks, swiping left should not open Drawer.
As , SearchScreen is first level of Bottom tab navigator and it also show products which contain filters, CategoryTree Drawer should not open on swiping left
From any other screen which are not mentioned here, drawer should remain disabled.
Current Behavior DrawerScreen can be access from any screen, by swiping left across the screen
Steps to Reproduce
Open the app on Android phone
Start swiping left across the screen
Solution
First solution(Easy method): Disable gesture
Second Solution: Keep only one Drawer Navigator. Remove DrawerScreen as Drawer and make it a screen that render over top of the Category and search screen
Third Solution: Properly handle both Drawer state as mentioned in Expected behavior.
Screenshots
DrawerScreen accessible from HomeScreen
Smartphone (please complete the following information):
Magento Version: [2.1.0]
Device: [Android Emulator Nexus 5X]
OS: [PIE]
Version [28]
Additional context
I don't know whether gestures are enabled on iOS or not, but they are enabled on Android.
The text was updated successfully, but these errors were encountered:
Describe the bug
Since
react-native-gesture-handler
is enabled in the code, dragging left across the screen opens up the Drawer. There are two Drawer used one showingCategoryTree
and other showingDrawerScreen
forCategory
component. And asDrawerScreen
drawer is the top most Drawer, swiping left across any screen whether Home, Cart, Login etc, it opens up.Expected behavior
CategoryTree
Drawer should be only accessible fromHomeScreen
,Login
orAccount
(depending upon user is authenticated or not) andCart
. As soon as other screen are added in their respective stacks, swiping left should not open Drawer.DrawerScreen
drawer should only be accessible fromCategory
andSeacrhScreen
Current Behavior
DrawerScreen
can be access from any screen, by swiping left across the screenSteps to Reproduce
Solution
First solution(Easy method): Disable gesture
Second Solution: Keep only one Drawer Navigator. Remove
DrawerScreen
as Drawer and make it a screen that render over top of the Category and search screenThird Solution: Properly handle both Drawer state as mentioned in Expected behavior.
Screenshots
![gif](https://user-images.githubusercontent.com/13250741/65246505-60b3d700-db0c-11e9-8af0-3a666c9c3159.gif)
Smartphone (please complete the following information):
Additional context
I don't know whether gestures are enabled on iOS or not, but they are enabled on Android.
The text was updated successfully, but these errors were encountered: