react-bottom-fixed
Version:
A React component for iOS that keeps your bottom-positioned elements fixed and safely visible, automatically adjusting their positions when viewport changes (e.g., virtual keyboard appearance).
16 lines (15 loc) • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBrowser = exports.isServer = void 0;
/**
* Check if the code is running on the server
* @returns true if the code is running on the server, false otherwise
*/
const isServer = () => typeof window === 'undefined';
exports.isServer = isServer;
/**
* Check if the code is running on the client
* @returns true if the code is running on the client, false otherwise
*/
const isBrowser = () => typeof window !== 'undefined';
exports.isBrowser = isBrowser;