application-amicale/native-base-theme/components/Container.js

17 lines
393 B
JavaScript
Raw Normal View History

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