lark-cms
Version:
Multi terminal CMS component library
38 lines (37 loc) • 1.4 kB
TypeScript
import { Component } from "react";
import PropTypes from "prop-types";
/**
* Helper function to get the current status bar height to plus in paddingTop message
*/
export declare function getFlashMessageStatusBarHeight(isLandscape?: boolean, _customStatusBarHeight?: null): any;
/**
* Helper function to "append" extra padding in MessageComponent style
*/
export declare function styleWithInset(style: any, wrapperInset: any, hideStatusBar?: boolean, prop?: string): any;
/**
* Helper function to "append" extra margin in MessageComponent style
*/
export declare function styleWithInsetMargin(style: any, wrapperInset: any, hideStatusBar?: boolean): any;
/**
* Utility component wrapper to handle orientation changes and extra padding control for iOS (specially iPads and iPhone X)
*/
export default class FlashMessageWrapper extends Component {
static defaultProps: {
/**
* Default FlashMessage position is "top"
* Other options like "bottom" and "center" use other extra padding configurations
*/
position: string;
};
static propTypes: {
position: PropTypes.Requireable<string>;
children: PropTypes.Validator<(...args: any[]) => any>;
};
constructor();
componentDidMount(): void;
componentWillUnmount(): void;
handleOrientationChange({ window }: {
window: any;
}): void;
render(): any;
}