Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function glueContainer(props) {
const {
height,
iPhoneXHeight,
borderTopLeftRadius,
borderTopRightRadius,
backgroundColor
} = props;
return {
backgroundColor: backgroundColor || "#fff",
borderTopLeftRadius: borderTopLeftRadius || 24,
borderTopRightRadius: borderTopRightRadius || 24,
height: isIPhoneXFamily() ? iPhoneXHeight || height || 100 : height || 80
};
}
export function ifIPhoneXHeader(noExtraMargin) {
if (noExtraMargin) return { marginTop: 16 };
return {
marginTop: isIPhoneXFamily() ? 44 : 16
};
}