react-fixed-bottom
Version:
React component to make fixed:bottom styles usable in Safari mobile
22 lines (21 loc) • 689 B
TypeScript
import React, { RefObject } from 'react';
import { Cancelable } from 'lodash';
export interface FixedBottomProps {
children: React.ReactChild;
offset?: number;
}
export interface FixedBottomState {
bottom: number;
}
export declare class FixedBottom extends React.PureComponent<FixedBottomProps> {
state: FixedBottomState;
isSafariMobile: boolean;
anchorRef: RefObject<HTMLDivElement>;
deferredComputeOffsetBottom: number;
handleScroll: (() => void) & Cancelable;
constructor(props: FixedBottomProps);
componentDidMount(): void;
componentWillUnmount(): void;
computeOffsetBottom: () => void;
render(): JSX.Element;
}