Container.js 456 B

1234567891011121314151617
  1. // @flow
  2. import { Platform, Dimensions } from 'react-native';
  3. import variable from './../variables/platform';
  4. import { PLATFORM } from './../variables/commonColor';
  5. const deviceHeight = Dimensions.get('window').height;
  6. export default (variables /* : * */ = variable) => {
  7. const theme = {
  8. flex: 1,
  9. height: Platform.OS === PLATFORM.IOS ? deviceHeight : deviceHeight - 20,
  10. backgroundColor: variables.containerBgColor
  11. };
  12. return theme;
  13. };