{"action":"created","issue":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4894","repository_url":"https://api.github.com/repos/react-navigation/react-navigation","labels_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4894/labels{/name}","comments_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4894/comments","events_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4894/events","html_url":"https://github.com/react-navigation/react-navigation/issues/4894","id":353731205,"node_id":"MDU6SXNzdWUzNTM3MzEyMDU=","number":4894,"title":"Android swipeEnabled:false not working (v2.12.1)","user":{"login":"dominikeinkemmer","id":18051009,"node_id":"MDQ6VXNlcjE4MDUxMDA5","avatar_url":"https://avatars2.githubusercontent.com/u/18051009?v=4","gravatar_id":"","url":"https://api.github.com/users/dominikeinkemmer","html_url":"https://github.com/dominikeinkemmer","followers_url":"https://api.github.com/users/dominikeinkemmer/followers","following_url":"https://api.github.com/users/dominikeinkemmer/following{/other_user}","gists_url":"https://api.github.com/users/dominikeinkemmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikeinkemmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikeinkemmer/subscriptions","organizations_url":"https://api.github.com/users/dominikeinkemmer/orgs","repos_url":"https://api.github.com/users/dominikeinkemmer/repos","events_url":"https://api.github.com/users/dominikeinkemmer/events{/privacy}","received_events_url":"https://api.github.com/users/dominikeinkemmer/received_events","type":"User","site_admin":false},"labels":[{"id":830566330,"node_id":"MDU6TGFiZWw4MzA1NjYzMzA=","url":"https://api.github.com/repos/react-navigation/react-navigation/labels/needs%20repro","name":"needs repro","color":"dd6684","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-24T10:33:33Z","updated_at":"2018-08-28T06:16:26Z","closed_at":null,"author_association":"NONE","body":"### Current Behavior\r\n\r\n- What code are you running and what is happening?\r\nThe problem I have is on Android (iOS is fine) in the Tab-navigation. Even though I have `gesturesEnabled: false` and `swipeEnabled: false` I can still swipe between the tabs. \r\n\r\nThis is a problem because I dynamically remove tab buttons to not show them to the user depending on some data I receive via bluetooth. \r\n\r\nSo the user can still navigate by swiping on Android even though he can't see the tab-bar buttons for those screens.\r\n\r\n**The following code shows my navigation configuration setup:**\r\n\r\ninitial stack-navigator:\r\n```typescript\r\ncreateStackNavigator(AppRouteConfigs, {\r\n    headerMode: 'float',\r\n    navigationOptions: {\r\n        gesturesEnabled: false\r\n    }\r\n});\r\n```\r\nAppRouteConfigs:\r\n```typescript\r\n{\r\nHome: {\r\n        screen: Home,\r\n        navigationOptions: {\r\n            header: null\r\n        }\r\n    },\r\n    StandBy: {\r\n        screen: StandBy,\r\n        navigationOptions: {\r\n            header: null\r\n        }\r\n    },\r\n    Drawer: {\r\n        screen: createDrawerNavigator(drawerNav, {\r\n            drawerWidth: 60,\r\n            contentComponent: CustomNavigationItems\r\n        }),\r\n        navigationOptions: ({ navigation }): any => ({\r\n            gesturesEnabled: false\r\n        })\r\n    }\r\n};\r\n\r\nconst drawerNav = {\r\n Remote: {\r\n        screen: createTabNavigator(remoteTabNav, {\r\n            tabBarComponent: CustomTabBar,\r\n            tabBarPosition: 'bottom',\r\n            backBehavior: 'none'\r\n        }),\r\n        navigationOptions: {\r\n            gesturesEnabled: false,\r\n            swipeEnabled: false\r\n        }\r\n    },\r\n    Settings: {\r\n        screen: createStackNavigator(settingsStackNav, {\r\n            headerMode: 'screen',\r\n            navigationOptions: {\r\n                gesturesEnabled: false\r\n            }\r\n        })\r\n    },\r\n};\r\n\r\nconst remoteTabNav = {\r\n     RegularSaunaControl: {\r\n        screen: RegularSaunaControl,\r\n        navigationOptions: {\r\n            tabBarLabel: 'sauna'\r\n        }\r\n    },\r\n    SteamSaunaControl: {\r\n        screen: SteamSaunaControl,\r\n        navigationOptions: {\r\n            tabBarLabel: 'steam'\r\n        }\r\n    },\r\n};\r\n\r\nconst settingsStackNav = {\r\n    Settings: {\r\n        screen: Settings\r\n    },\r\n    ColorSettings: {\r\n        screen: ColorSettings\r\n    },\r\n}\r\n```\r\n\r\n### Expected Behavior\r\n\r\n- What do you expect should be happening?\r\nThat navigation by swiping should not work anymore if I use `swipeEnabled: false` and `gesturesEnabled: false` inside my createTabNavigator.\r\n\r\n### Your Environment\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| react-navigation | 2.12.1\r\n| react-native     | 0.55.4\r\n"},"comment":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/comments/416464084","html_url":"https://github.com/react-navigation/react-navigation/issues/4894#issuecomment-416464084","issue_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4894","id":416464084,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjQ2NDA4NA==","user":{"login":"dominikeinkemmer","id":18051009,"node_id":"MDQ6VXNlcjE4MDUxMDA5","avatar_url":"https://avatars2.githubusercontent.com/u/18051009?v=4","gravatar_id":"","url":"https://api.github.com/users/dominikeinkemmer","html_url":"https://github.com/dominikeinkemmer","followers_url":"https://api.github.com/users/dominikeinkemmer/followers","following_url":"https://api.github.com/users/dominikeinkemmer/following{/other_user}","gists_url":"https://api.github.com/users/dominikeinkemmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikeinkemmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikeinkemmer/subscriptions","organizations_url":"https://api.github.com/users/dominikeinkemmer/orgs","repos_url":"https://api.github.com/users/dominikeinkemmer/repos","events_url":"https://api.github.com/users/dominikeinkemmer/events{/privacy}","received_events_url":"https://api.github.com/users/dominikeinkemmer/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T06:16:26Z","updated_at":"2018-08-28T06:16:26Z","author_association":"NONE","body":"Hi, thanks I will make a running example and provide you with the link to it."}}
{"actor":{"display_login":"dominikeinkemmer"}}