diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-01 16:13:10 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-05 12:11:55 +0200 |
| commit | ca2f6fbfcad7b73d4ea63ef46cb1cab943ec9087 (patch) | |
| tree | b1f7754eb50896ab3681e35fa4e08be642b940c9 /app/components/TransitionContainerStyles.android.js | |
| parent | 5852c980980de53e00d76a0bdb4b41bf5c0f5b39 (diff) | |
| download | mullvadvpn-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.js | 36 |
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 +}; |
