2019-06-25 22:20:24 +02:00
|
|
|
// @flow
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import { Platform, Dimensions } from 'react-native';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import variable from './../variables/platform';
|
|
|
|
import { PLATFORM } from './../variables/commonColor';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
const deviceHeight = Dimensions.get('window').height;
|
|
|
|
export default (variables /* : * */ = variable) => {
|
2019-06-25 22:20:24 +02:00
|
|
|
const theme = {
|
|
|
|
flex: 1,
|
2020-01-28 20:07:21 +01:00
|
|
|
height: Platform.OS === PLATFORM.IOS ? deviceHeight : deviceHeight - 20,
|
2019-06-25 22:20:24 +02:00
|
|
|
backgroundColor: variables.containerBgColor
|
|
|
|
};
|
|
|
|
|
|
|
|
return theme;
|
|
|
|
};
|