14 lines
486 B
TypeScript
14 lines
486 B
TypeScript
import { Dimensions, Platform, StatusBar } from "react-native";
|
|
|
|
export const LISTMARGIN = 10;
|
|
export const WIDTH = Dimensions.get("screen").width - LISTMARGIN * 2;
|
|
|
|
const baseHeight = 160;
|
|
const isoNotch = 40;
|
|
const isoHeight = baseHeight + isoNotch;
|
|
let androidHeight = baseHeight;
|
|
let androidNotch = 0;
|
|
if (StatusBar.currentHeight) androidNotch = StatusBar.currentHeight;
|
|
androidHeight += androidNotch;
|
|
|
|
export const HEADERHEIGHT = Platform.OS === "ios" ? isoHeight : androidHeight; |