diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 15:07:37 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-15 17:39:38 +0200 |
| commit | 71592249b2dd669b6f24f37bfb7b0f4e43b74998 (patch) | |
| tree | a6097dc7e5d94d06e99c65fdfe160e824395f50c /app/components/TransitionContainerStyles.android.js | |
| parent | e84e87f4ce5a8c242f756566cdc6fb59a45f7bea (diff) | |
| download | mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.tar.xz mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.zip | |
Add workspaces
Diffstat (limited to 'app/components/TransitionContainerStyles.android.js')
| -rw-r--r-- | app/components/TransitionContainerStyles.android.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/components/TransitionContainerStyles.android.js b/app/components/TransitionContainerStyles.android.js deleted file mode 100644 index d69980ab43..0000000000 --- a/app/components/TransitionContainerStyles.android.js +++ /dev/null @@ -1,38 +0,0 @@ -// @flow - -import { Styles, UserInterface } from 'reactxp'; -import { MobileAppBridge } from 'NativeModules'; -import { log } from '../lib/platform'; - -const dimensions = UserInterface.measureWindow(); -let menuBarHeight; - -MobileAppBridge.getMenuBarHeight() - .then((_response) => { - menuBarHeight = _response; - return; - }) - .catch((e) => { - log.error('Failed getting menuBarHeight:', e); - }); - -export default () => { - return { - animationDefaultStyle: Styles.createAnimatedViewStyle( - { - position: 'absolute', - width: dimensions.width, - height: dimensions.height - menuBarHeight + 24, - }, - false, - ), - allowPointerEventsStyle: null, - transitionContainerStyle: Styles.createViewStyle( - { - width: dimensions.width, - height: dimensions.height - menuBarHeight + 24, //TODO: Remove ugly hack since it seems that at least my LG is seems hard to find the real display area ... Probably needs to be fixed for some versions or models - }, - false, - ), - }; -}; |
