Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Container.js 393B

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