[ReactNative] Get rid of another pair of unnecessary Dimensions.get('window')
This commit is contained in:
parent
e382894ef3
commit
fd8bc3b5f6
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue