UNPKG

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).

71 lines 2.17 kB
{ "name": "react-bottom-fixed", "version": "0.2.0", "description": "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).", "author": "almond-bongbong", "license": "MIT", "repository": "https://github.com/almond-bongbong/react-bottom-fixed", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", "module": "./lib/esm/index.js", "type": "module", "files": [ "lib/**/*" ], "exports": { ".": { "types": "./lib/types/index.d.ts", "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js" } }, "scripts": { "clean": "del-cli ./lib", "lint": "eslint src", "copy:css": "cp src/index.css lib/esm/ && cp src/index.css lib/cjs/", "build:esm": "tsc -p ./tsconfig.json", "build:cjs": "tsc -p ./tsconfig.cjs.json", "build": "npm run clean && npm run lint && npm run build:esm && npm run build:cjs && npm run copy:css", "prepack": "npm run build", "test": "jest", "test:watch": "jest --watch" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "devDependencies": { "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^16.3.0", "@types/jest": "^29.5.12", "@types/node": "^22.15.26", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", "del-cli": "^6.0.0", "eslint": "9.27.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "5.2.0", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "postcss": "^8.5.3", "prettier": "^3.5.3", "sass": "^1.89.0", "ts-jest": "^29.1.2", "typescript": "^5.8.3" }, "keywords": [ "react", "react-component", "ios", "keyboard", "fixed-position", "viewport", "mobile-ui", "react-hooks", "bottom-navigation", "keyboard-aware" ], "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" }