summaryrefslogtreecommitdiffhomepage
path: root/app/components/TransitionContainerStyles.android.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-01 16:13:10 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-05 12:11:55 +0200
commitca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch)
treeb1f7754eb50896ab3681e35fa4e08be642b940c9 /app/components/TransitionContainerStyles.android.js
parent5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff)
downloadmullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.tar.xz
mullvadvpn-ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087.zip
Add formatted source code
Diffstat (limited to 'app/components/TransitionContainerStyles.android.js')
-rw-r--r--app/components/TransitionContainerStyles.android.js36
1 files changed, 23 insertions, 13 deletions
diff --git a/app/components/TransitionContainerStyles.android.js b/app/components/TransitionContainerStyles.android.js
index d335eea680..b234ff4be0 100644
--- a/app/components/TransitionContainerStyles.android.js
+++ b/app/components/TransitionContainerStyles.android.js
@@ -6,21 +6,31 @@ import { log } from '../lib/platform';
const dimensions = UserInterface.measureWindow();
let menuBarHeight;
-MobileAppBridge.getMenuBarHeight().then(_response => {menuBarHeight = _response;}).catch(e => {
- log.error('Failed getting menuBarHeight:', e);
-});
+MobileAppBridge.getMenuBarHeight()
+ .then((_response) => {
+ menuBarHeight = _response;
+ })
+ .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),
+ 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)
+ 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,
+ ),
};
-}; \ No newline at end of file
+};