[ReactNative] Get rid of another pair of unnecessary Dimensions.get('window')

This commit is contained in:
Philipp von Weitershausen 2015-04-10 22:17:49 -07:00
parent e382894ef3
commit fd8bc3b5f6
2 changed files with 8 additions and 6 deletions

View File

@ -11,7 +11,6 @@
'use strict';
var Dimensions = require('Dimensions');
var React = require('React');
var View = require('View');
var StyleSheet = require('StyleSheet');
@ -33,8 +32,10 @@ var styles = StyleSheet.create({
tab: {
// TODO(5405356): Implement overflow: visible so position: absolute isn't useless
// position: 'absolute',
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
top: 0,
right: 0,
bottom: 0,
left: 0,
borderColor: 'red',
borderWidth: 1,
}

View File

@ -14,7 +14,6 @@
var Image = require('Image');
var React = require('React');
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
var Dimensions = require('Dimensions');
var StaticContainer = require('StaticContainer.react');
var StyleSheet = require('StyleSheet');
var View = require('View');
@ -134,8 +133,10 @@ var TabBarItemIOS = React.createClass({
var styles = StyleSheet.create({
tab: {
position: 'absolute',
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
top: 0,
right: 0,
bottom: 0,
left: 0,
}
});