From 89a8d6ed68f4c3b242c3bd0962cecbb7c724db52 Mon Sep 17 00:00:00 2001 From: Guillaume Louvigny Date: Mon, 11 Feb 2019 12:06:25 +0100 Subject: [PATCH] fix: disabled debug bar movability on android --- .../react-native/common/components/Library/DebugStateBar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/react-native/common/components/Library/DebugStateBar.js b/client/react-native/common/components/Library/DebugStateBar.js index 75792d1b60..34f454249c 100644 --- a/client/react-native/common/components/Library/DebugStateBar.js +++ b/client/react-native/common/components/Library/DebugStateBar.js @@ -2,7 +2,7 @@ import React, { PureComponent } from 'react' import { colors } from '../../constants' import { promiseWithTimeout } from 'react-relay-network-modern/es/middlewares/retry' import { Flex, Text } from './index' -import { View } from 'react-native' +import { View, Platform } from 'react-native' import RelayContext from '../../relay/RelayContext' import Icon from './Icon' import NavigationService from '../../helpers/NavigationService' @@ -238,11 +238,13 @@ class DebugStateBar extends PureComponent { NavigationService.navigate('settings/devtools')} /> } - this.setState({ collapsed: !this.state.collapsed })} /> + this.setState({ collapsed: !this.state.collapsed })} /> + {Platform.OS !== 'android' && + } ) }