[MAdMan] Dimensions.get('window') considered harmful

This commit is contained in:
Philipp von Weitershausen 2015-04-08 13:49:59 -07:00
parent be46ccf4c4
commit ae76d3982b
1 changed files with 5 additions and 6 deletions

View File

@ -28,7 +28,6 @@
var AnimationsDebugModule = require('NativeModules').AnimationsDebugModule; var AnimationsDebugModule = require('NativeModules').AnimationsDebugModule;
var BackAndroid = require('BackAndroid'); var BackAndroid = require('BackAndroid');
var Dimensions = require('Dimensions');
var InteractionMixin = require('InteractionMixin'); var InteractionMixin = require('InteractionMixin');
var NavigatorBreadcrumbNavigationBar = require('NavigatorBreadcrumbNavigationBar'); var NavigatorBreadcrumbNavigationBar = require('NavigatorBreadcrumbNavigationBar');
var NavigatorInterceptor = require('NavigatorInterceptor'); var NavigatorInterceptor = require('NavigatorInterceptor');
@ -52,9 +51,6 @@ var rebound = require('rebound');
var PropTypes = React.PropTypes; var PropTypes = React.PropTypes;
var SCREEN_WIDTH = Dimensions.get('window').width;
var SCREEN_HEIGHT = Dimensions.get('window').height;
var OFF_SCREEN = {style: {opacity: 0}}; var OFF_SCREEN = {style: {opacity: 0}};
var __uid = 0; var __uid = 0;
@ -69,8 +65,11 @@ var styles = StyleSheet.create({
overflow: 'hidden', overflow: 'hidden',
}, },
defaultSceneStyle: { defaultSceneStyle: {
width: SCREEN_WIDTH, position: 'absolute',
height: SCREEN_HEIGHT, left: 0,
right: 0,
bottom: 0,
top: 0,
}, },
presentNavItem: { presentNavItem: {
position: 'absolute', position: 'absolute',