diff --git a/README.md b/README.md index 7d66bf0..c24f6a7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# react-native-responsive-design +# react-native-dimensions-layout -react-native-responsive-design +react-native-dimensions-layout - As a React Native developer, we need to determine the size of components with different display sizes for each device using the app - Usually, when collaborating using Figma, calculating is annoying and there is a possibility of making mistakes. Even if it is modularized, it can be inaccurate sometimes. It is also difficult to cope with foldable phones or horizontal modes. And some components don't work with percentage @@ -9,9 +9,9 @@ react-native-responsive-design ## Installation ```sh -npm install react-native-responsive-design +npm install react-native-dimensions-layout # or -yarn add react-native-responsive-design +yarn add react-native-dimensions-layout ``` ## Usage @@ -21,7 +21,7 @@ yarn add react-native-responsive-design Calculates the percentage value of the width relative to the screen width. ```javascript -import { widthPercentage } from 'react-native-responsive-design'; +import { widthPercentage } from 'react-native-dimensions-layout'; const screenWidth = 200; // Current screen width const widthInPercentage = widthPercentage(screenWidth); @@ -37,7 +37,7 @@ Calculates the percentage value of the height relative to the screen height. Calculates the percentage value of the height relative to the screen height. ```javascript -import { heightPercentage } from 'react-native-responsive-design'; +import { heightPercentage } from 'react-native-dimensions-layout'; const screenHeight = 400; // Current screen height const heightInPercentage = heightPercentage(screenHeight); @@ -49,7 +49,7 @@ console.log(heightInPercentage); // Percentage value of the screen height Calculates the percentage value of the font size ```javascript -import { fontPercentage } from 'react-native-responsive-design'; +import { fontPercentage } from 'react-native-dimensions-layout'; const fontSize = 20; // Font size const fontSizeInPercentage = fontPercentage(fontSize); @@ -61,7 +61,7 @@ console.log(fontSizeInPercentage); // Percentage value of the font size Scales the value provided based on the horizontal size of the screen. ```javascript -import { fontPercentage } from 'react-native-responsive-design'; +import { fontPercentage } from 'react-native-dimensions-layout'; const fontSize = 20; // Font size const fontSizeInPercentage = fontPercentage(fontSize); @@ -72,7 +72,7 @@ console.log(fontSizeInPercentage); // Percentage value of the font size Scales the value provided based on the horizontal size of the screen. ```javascript -import { horizontalScale, verticalScale } from 'react-native-responsive-design'; +import { horizontalScale, verticalScale } from 'react-native-dimensions-layout'; const widthValue = 100; // Value to scale horizontally const heightValue = 100; // Value to scale vertically diff --git a/example/package.json b/example/package.json index 0af7d22..bd42315 100644 --- a/example/package.json +++ b/example/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-responsive-design-example", + "name": "react-native-dimensions-layout-example", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { diff --git a/example/src/App.tsx b/example/src/App.tsx index 1c90216..7d4cde0 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -5,7 +5,7 @@ import { fontSizeScale, horizontalScale, verticalScale, -} from 'react-native-responsive-design'; +} from 'react-native-dimensions-layout'; import { heightPercentage, widthPercentage } from './util/responsiveSize'; export default function App() { diff --git a/example/src/util/responsiveSize.tsx b/example/src/util/responsiveSize.tsx index e543509..97f5359 100644 --- a/example/src/util/responsiveSize.tsx +++ b/example/src/util/responsiveSize.tsx @@ -2,7 +2,7 @@ import { fontSizeScale, percentBaseHeight, percentBaseWidth, -} from 'react-native-responsive-design'; +} from 'react-native-dimensions-layout'; // Screen size defined in your Figma design const FIGMA_WINDOW_WIDTH = 375; diff --git a/package.json b/package.json index 55ae27f..f416c6e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "react-native-responsive-design", + "name": "react-native-dimensions-layout", "version": "1.0.0", - "description": "react-native-responsive-design", + "description": "react-native-dimensions-layout", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", "types": "lib/typescript/src/index.d.ts", @@ -26,7 +26,7 @@ "!**/.*" ], "scripts": { - "example": "yarn workspace react-native-responsive-design-example", + "example": "yarn workspace react-native-dimensions-layout-example", "test": "jest", "typecheck": "tsc --noEmit", "lint": "eslint \"**/*.{js,ts,tsx}\"", @@ -41,14 +41,14 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/kdn0325/react-native-responsive-design.git" + "url": "git+https://github.com/kdn0325/react-native-dimensions-layout.git" }, "author": "kdn0325 (https://github.com/kdn0325)", "license": "MIT", "bugs": { - "url": "https://github.com/kdn0325/react-native-responsive-design/issues" + "url": "https://github.com/kdn0325/react-native-dimensions-layout/issues" }, - "homepage": "https://github.com/kdn0325/react-native-responsive-design#readme", + "homepage": "https://github.com/kdn0325/react-native-dimensions-layout#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, @@ -150,5 +150,792 @@ "module", "typescript" ] + }, + "directories": { + "example": "example", + "lib": "lib" + }, + "dependencies": { + "JSONStream": "^1.3.5", + "abbrev": "^2.0.0", + "abort-controller": "^3.0.0", + "accepts": "^1.3.8", + "acorn": "^8.11.3", + "acorn-jsx": "^5.3.2", + "acorn-walk": "^8.3.2", + "add-stream": "^1.0.0", + "agent-base": "^7.1.0", + "aggregate-error": "^4.0.1", + "ajv": "^8.12.0", + "anser": "^1.4.10", + "ansi-align": "^3.0.1", + "ansi-escapes": "^4.3.2", + "ansi-fragments": "^0.2.1", + "ansi-regex": "^5.0.1", + "ansi-styles": "^4.3.0", + "anymatch": "^3.1.3", + "appdirsjs": "^1.2.7", + "arg": "^4.1.3", + "argparse": "^2.0.1", + "array-buffer-byte-length": "^1.0.1", + "array-ify": "^1.0.0", + "array-includes": "^3.1.7", + "array-union": "^2.1.0", + "array.prototype.findlast": "^1.2.4", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "array.prototype.map": "^1.0.6", + "array.prototype.toreversed": "^1.1.2", + "array.prototype.tosorted": "^1.1.3", + "arraybuffer.prototype.slice": "^1.0.3", + "arrify": "^1.0.1", + "asap": "^2.0.6", + "ast-types": "^0.13.4", + "astral-regex": "^1.0.0", + "async-limiter": "^1.0.1", + "async-retry": "^1.3.3", + "asynciterator.prototype": "^1.0.0", + "available-typed-arrays": "^1.0.7", + "babel-core": "^7.0.0-bridge.0", + "babel-jest": "^29.7.0", + "babel-plugin-istanbul": "^6.1.1", + "babel-plugin-jest-hoist": "^29.6.3", + "babel-plugin-polyfill-corejs2": "^0.4.9", + "babel-plugin-polyfill-corejs3": "^0.9.0", + "babel-plugin-polyfill-regenerator": "^0.5.5", + "babel-plugin-transform-flow-enums": "^0.0.2", + "babel-preset-current-node-syntax": "^1.0.1", + "babel-preset-jest": "^29.6.3", + "balanced-match": "^1.0.2", + "base64-js": "^1.5.1", + "basic-ftp": "^5.0.5", + "before-after-hook": "^2.2.3", + "big-integer": "^1.6.52", + "bl": "^4.1.0", + "boxen": "^7.1.1", + "bplist-parser": "^0.2.0", + "brace-expansion": "^2.0.1", + "braces": "^3.0.2", + "browserslist": "^4.23.0", + "bser": "^2.1.1", + "buffer": "^5.7.1", + "buffer-from": "^1.1.2", + "bundle-name": "^3.0.0", + "bytes": "^3.0.0", + "cacache": "^18.0.2", + "cacheable-lookup": "^7.0.0", + "cacheable-request": "^10.2.14", + "call-bind": "^1.0.7", + "caller-callsite": "^2.0.0", + "caller-path": "^2.0.0", + "callsites": "^3.1.0", + "camelcase": "^5.3.1", + "camelcase-keys": "^6.2.2", + "caniuse-lite": "^1.0.30001596", + "chalk": "^4.1.2", + "char-regex": "^1.0.2", + "chardet": "^0.7.0", + "chownr": "^2.0.0", + "chrome-launcher": "^0.15.2", + "chromium-edge-launcher": "^1.0.0", + "ci-info": "^3.9.0", + "cjs-module-lexer": "^1.2.3", + "clean-stack": "^4.2.0", + "cli-boxes": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.9.2", + "cli-width": "^4.1.0", + "cliui": "^8.0.1", + "clone": "^1.0.4", + "clone-deep": "^4.0.1", + "co": "^4.6.0", + "collect-v8-coverage": "^1.0.2", + "color-convert": "^2.0.1", + "color-name": "^1.1.4", + "colorette": "^1.4.0", + "command-exists": "^1.2.9", + "commander": "^9.5.0", + "commondir": "^1.0.1", + "compare-func": "^2.0.0", + "compressible": "^2.0.18", + "compression": "^1.7.4", + "concat-map": "^0.0.1", + "concat-stream": "^2.0.0", + "config-chain": "^1.1.13", + "configstore": "^6.0.0", + "connect": "^3.7.0", + "conventional-changelog": "^3.1.25", + "conventional-changelog-angular": "^6.0.0", + "conventional-changelog-atom": "^2.0.8", + "conventional-changelog-codemirror": "^2.0.8", + "conventional-changelog-conventionalcommits": "^6.1.0", + "conventional-changelog-core": "^4.2.4", + "conventional-changelog-ember": "^2.0.9", + "conventional-changelog-eslint": "^3.0.9", + "conventional-changelog-express": "^2.0.6", + "conventional-changelog-jquery": "^3.0.11", + "conventional-changelog-jshint": "^2.0.9", + "conventional-changelog-preset-loader": "^2.3.4", + "conventional-changelog-writer": "^5.0.1", + "conventional-commits-filter": "^2.0.7", + "conventional-commits-parser": "^3.2.4", + "conventional-recommended-bump": "^6.1.0", + "convert-source-map": "^2.0.0", + "core-js-compat": "^3.36.0", + "core-util-is": "^1.0.3", + "cosmiconfig": "^8.3.6", + "cosmiconfig-typescript-loader": "^4.4.0", + "create-jest": "^29.7.0", + "create-require": "^1.1.1", + "cross-spawn": "^7.0.3", + "crypto-random-string": "^4.0.0", + "csstype": "^3.1.3", + "dargs": "^7.0.0", + "data-uri-to-buffer": "^4.0.1", + "data-view-buffer": "^1.0.1", + "data-view-byte-length": "^1.0.1", + "data-view-byte-offset": "^1.0.0", + "dateformat": "^3.0.3", + "dayjs": "^1.11.10", + "debug": "^4.3.4", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.1", + "decompress-response": "^6.0.0", + "dedent": "^0.7.0", + "deep-extend": "^0.6.0", + "deep-is": "^0.1.4", + "deepmerge": "^4.3.1", + "default-browser": "^4.0.0", + "default-browser-id": "^3.0.0", + "defaults": "^1.0.4", + "defer-to-connect": "^2.0.1", + "define-data-property": "^1.1.4", + "define-lazy-prop": "^3.0.0", + "define-properties": "^1.2.1", + "degenerator": "^4.0.4", + "del": "^6.1.1", + "denodeify": "^1.2.1", + "depd": "^2.0.0", + "deprecated-react-native-prop-types": "^5.0.0", + "deprecation": "^2.3.1", + "destroy": "^1.2.0", + "detect-newline": "^3.1.0", + "diff": "^4.0.2", + "diff-sequences": "^29.6.3", + "dir-glob": "^3.0.1", + "doctrine": "^3.0.0", + "dot-prop": "^5.3.0", + "eastasianwidth": "^0.2.0", + "ee-first": "^1.1.1", + "electron-to-chromium": "^1.4.699", + "emittery": "^0.13.1", + "emoji-regex": "^8.0.0", + "encodeurl": "^1.0.2", + "encoding": "^0.1.13", + "end-of-stream": "^1.4.4", + "env-paths": "^2.2.1", + "envinfo": "^7.11.1", + "err-code": "^2.0.3", + "error-ex": "^1.3.2", + "error-stack-parser": "^2.1.4", + "errorhandler": "^1.5.1", + "es-abstract": "^1.23.0", + "es-array-method-boxes-properly": "^1.0.0", + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "es-get-iterator": "^1.1.3", + "es-iterator-helpers": "^1.0.17", + "es-set-tostringtag": "^2.0.3", + "es-shim-unscopables": "^1.0.2", + "es-to-primitive": "^1.2.1", + "escalade": "^3.1.2", + "escape-goat": "^4.0.0", + "escape-html": "^1.0.3", + "escape-string-regexp": "^4.0.0", + "escodegen": "^1.14.3", + "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-ft-flow": "^2.0.3", + "eslint-plugin-jest": "^26.9.0", + "eslint-plugin-react": "^7.34.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-native": "^4.1.0", + "eslint-plugin-react-native-globals": "^0.1.2", + "eslint-scope": "^5.1.1", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esprima": "^4.0.1", + "esquery": "^1.5.0", + "esrecurse": "^4.3.0", + "estraverse": "^5.3.0", + "esutils": "^2.0.3", + "etag": "^1.8.1", + "event-target-shim": "^5.0.1", + "execa": "^5.1.1", + "exit": "^0.1.2", + "expect": "^29.7.0", + "exponential-backoff": "^3.1.1", + "external-editor": "^3.1.0", + "fast-deep-equal": "^3.1.3", + "fast-diff": "^1.3.0", + "fast-glob": "^3.3.2", + "fast-json-stable-stringify": "^2.1.0", + "fast-levenshtein": "^2.0.6", + "fast-xml-parser": "^4.3.5", + "fastq": "^1.17.1", + "fb-watchman": "^2.0.2", + "fetch-blob": "^3.2.0", + "figures": "^5.0.0", + "file-entry-cache": "^6.0.1", + "fill-range": "^7.0.1", + "finalhandler": "^1.1.2", + "find-cache-dir": "^2.1.0", + "find-up": "^5.0.0", + "flat-cache": "^3.2.0", + "flatted": "^3.3.1", + "flow-enums-runtime": "^0.0.6", + "flow-parser": "^0.206.0", + "for-each": "^0.3.3", + "foreground-child": "^3.1.1", + "form-data-encoder": "^2.1.4", + "formdata-polyfill": "^4.0.10", + "fresh": "^0.5.2", + "fs-extra": "^11.2.0", + "fs-minipass": "^2.1.0", + "fs.realpath": "^1.0.0", + "fsevents": "^2.3.3", + "function-bind": "^1.1.2", + "function.prototype.name": "^1.1.6", + "functions-have-names": "^1.2.3", + "gensync": "^1.0.0-beta.2", + "get-caller-file": "^2.0.5", + "get-intrinsic": "^1.2.4", + "get-package-type": "^0.1.0", + "get-pkg-repo": "^4.2.1", + "get-stream": "^6.0.1", + "get-symbol-description": "^1.0.2", + "get-uri": "^6.0.3", + "git-raw-commits": "^2.0.11", + "git-remote-origin-url": "^2.0.0", + "git-semver-tags": "^4.1.1", + "git-up": "^7.0.0", + "git-url-parse": "^13.1.0", + "gitconfiglocal": "^1.0.0", + "glob": "^7.2.3", + "glob-parent": "^5.1.2", + "global-dirs": "^0.1.1", + "globals": "^13.24.0", + "globalthis": "^1.0.3", + "globby": "^11.1.0", + "gopd": "^1.0.1", + "got": "^12.6.1", + "graceful-fs": "^4.2.11", + "graphemer": "^1.4.0", + "handlebars": "^4.7.8", + "hard-rejection": "^2.1.0", + "has-bigints": "^1.0.2", + "has-flag": "^4.0.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.0.3", + "has-symbols": "^1.0.3", + "has-tostringtag": "^1.0.2", + "has-yarn": "^3.0.0", + "hasown": "^2.0.1", + "hermes-estree": "^0.19.1", + "hermes-parser": "^0.19.1", + "hermes-profile-transformer": "^0.0.6", + "hosted-git-info": "^4.1.0", + "html-escaper": "^2.0.2", + "http-cache-semantics": "^4.1.1", + "http-errors": "^2.0.0", + "http-proxy-agent": "^7.0.2", + "http2-wrapper": "^2.2.1", + "https-proxy-agent": "^7.0.4", + "human-signals": "^4.3.1", + "iconv-lite": "^0.4.24", + "ieee754": "^1.2.1", + "ignore": "^5.3.1", + "image-size": "^1.1.1", + "import-fresh": "^3.3.0", + "import-lazy": "^4.0.0", + "import-local": "^3.1.0", + "imurmurhash": "^0.1.4", + "indent-string": "^4.0.0", + "inflight": "^1.0.6", + "inherits": "^2.0.4", + "ini": "^1.3.8", + "inquirer": "^9.2.6", + "internal-slot": "^1.0.7", + "interpret": "^1.4.0", + "invariant": "^2.2.4", + "ip": "^1.1.9", + "ip-address": "^9.0.5", + "is-absolute": "^1.0.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.4", + "is-arrayish": "^0.2.1", + "is-async-function": "^2.0.0", + "is-bigint": "^1.0.4", + "is-boolean-object": "^1.1.2", + "is-callable": "^1.2.7", + "is-ci": "^3.0.1", + "is-core-module": "^2.13.1", + "is-data-view": "^1.0.1", + "is-date-object": "^1.0.5", + "is-directory": "^0.3.1", + "is-docker": "^2.2.1", + "is-extglob": "^2.1.1", + "is-finalizationregistry": "^1.0.2", + "is-fullwidth-code-point": "^3.0.0", + "is-generator-fn": "^2.1.0", + "is-generator-function": "^1.0.10", + "is-git-dirty": "^2.0.2", + "is-git-repository": "^2.0.0", + "is-glob": "^4.0.3", + "is-inside-container": "^1.0.0", + "is-installed-globally": "^0.4.0", + "is-interactive": "^1.0.0", + "is-lambda": "^1.0.1", + "is-map": "^2.0.3", + "is-negative-zero": "^2.0.3", + "is-npm": "^6.0.0", + "is-number": "^7.0.0", + "is-number-object": "^1.0.7", + "is-obj": "^2.0.0", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.3", + "is-plain-obj": "^1.1.0", + "is-plain-object": "^5.0.0", + "is-regex": "^1.1.4", + "is-relative": "^1.0.0", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.3", + "is-ssh": "^1.4.0", + "is-stream": "^2.0.1", + "is-string": "^1.0.7", + "is-symbol": "^1.0.4", + "is-text-path": "^1.0.1", + "is-typed-array": "^1.1.13", + "is-typedarray": "^1.0.0", + "is-unc-path": "^1.0.0", + "is-unicode-supported": "^1.3.0", + "is-weakmap": "^2.0.2", + "is-weakref": "^1.0.2", + "is-weakset": "^2.0.3", + "is-windows": "^1.0.2", + "is-wsl": "^2.2.0", + "is-yarn-global": "^0.4.1", + "isarray": "^2.0.5", + "isexe": "^2.0.0", + "isobject": "^3.0.1", + "issue-parser": "^6.0.0", + "istanbul-lib-coverage": "^3.2.2", + "istanbul-lib-instrument": "^5.2.1", + "istanbul-lib-report": "^3.0.1", + "istanbul-lib-source-maps": "^4.0.1", + "istanbul-reports": "^3.1.7", + "iterate-iterator": "^1.0.2", + "iterate-value": "^1.0.2", + "iterator.prototype": "^1.1.2", + "jackspeak": "^2.3.6", + "jest-changed-files": "^29.7.0", + "jest-circus": "^29.7.0", + "jest-cli": "^29.7.0", + "jest-config": "^29.7.0", + "jest-diff": "^29.7.0", + "jest-docblock": "^29.7.0", + "jest-each": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-pnp-resolver": "^1.2.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "joi": "^17.12.2", + "js-tokens": "^4.0.0", + "js-yaml": "^4.1.0", + "jsbn": "^1.1.0", + "jsc-android": "^250231.0.0", + "jsc-safe-url": "^0.2.4", + "jscodeshift": "^0.14.0", + "jsesc": "^2.5.2", + "json-buffer": "^3.0.1", + "json-parse-better-errors": "^1.0.2", + "json-parse-even-better-errors": "^2.3.1", + "json-schema-traverse": "^1.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "json5": "^2.2.3", + "jsonfile": "^6.1.0", + "jsonparse": "^1.3.1", + "jsx-ast-utils": "^3.3.5", + "keyv": "^4.5.4", + "kind-of": "^6.0.3", + "kleur": "^4.1.5", + "latest-version": "^7.0.0", + "leven": "^3.1.0", + "levn": "^0.4.1", + "lighthouse-logger": "^1.4.2", + "lines-and-columns": "^1.2.4", + "load-json-file": "^4.0.0", + "locate-path": "^5.0.0", + "lodash": "^4.17.21", + "lodash.camelcase": "^4.3.0", + "lodash.capitalize": "^4.2.1", + "lodash.debounce": "^4.0.8", + "lodash.escaperegexp": "^4.1.2", + "lodash.isfunction": "^3.0.9", + "lodash.ismatch": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.kebabcase": "^4.1.1", + "lodash.merge": "^4.6.2", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "lodash.startcase": "^4.4.0", + "lodash.throttle": "^4.1.1", + "lodash.uniq": "^4.5.0", + "lodash.uniqby": "^4.7.0", + "lodash.upperfirst": "^4.3.1", + "log-symbols": "^4.1.0", + "logkitty": "^0.7.1", + "loose-envify": "^1.4.0", + "lowercase-keys": "^3.0.0", + "lru-cache": "^6.0.0", + "macos-release": "^3.2.0", + "make-dir": "^2.1.0", + "make-error": "^1.3.6", + "make-fetch-happen": "^13.0.0", + "makeerror": "^1.0.12", + "map-obj": "^4.3.0", + "marky": "^1.2.5", + "memoize-one": "^5.2.1", + "meow": "^8.1.2", + "merge-stream": "^2.0.0", + "merge2": "^1.4.1", + "metro": "^0.80.6", + "metro-babel-transformer": "^0.80.6", + "metro-cache": "^0.80.6", + "metro-cache-key": "^0.80.6", + "metro-config": "^0.80.6", + "metro-core": "^0.80.6", + "metro-file-map": "^0.80.6", + "metro-minify-terser": "^0.80.6", + "metro-resolver": "^0.80.6", + "metro-runtime": "^0.80.6", + "metro-source-map": "^0.80.6", + "metro-symbolicate": "^0.80.6", + "metro-transform-plugins": "^0.80.6", + "metro-transform-worker": "^0.80.6", + "micromatch": "^4.0.5", + "mime": "^2.6.0", + "mime-db": "^1.52.0", + "mime-types": "^2.1.35", + "mimic-fn": "^2.1.0", + "mimic-response": "^4.0.0", + "min-indent": "^1.0.1", + "minimatch": "^3.1.2", + "minimist": "^1.2.8", + "minimist-options": "^4.1.0", + "minipass": "^3.3.6", + "minipass-collect": "^2.0.1", + "minipass-fetch": "^3.0.4", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2", + "mkdirp": "^1.0.4", + "modify-values": "^1.0.1", + "ms": "^2.1.3", + "mute-stream": "^1.0.0", + "natural-compare": "^1.4.0", + "natural-compare-lite": "^1.4.0", + "negotiator": "^0.6.3", + "neo-async": "^2.6.2", + "netmask": "^2.0.2", + "new-github-release-url": "^2.0.0", + "nocache": "^3.0.4", + "node-abort-controller": "^3.1.1", + "node-dir": "^0.1.17", + "node-domexception": "^1.0.0", + "node-fetch": "^2.7.0", + "node-gyp": "^10.0.1", + "node-int64": "^0.4.0", + "node-releases": "^2.0.14", + "node-stream-zip": "^1.15.0", + "nopt": "^7.2.0", + "normalize-package-data": "^3.0.3", + "normalize-path": "^3.0.0", + "normalize-url": "^8.0.0", + "npm-run-path": "^4.0.1", + "nullthrows": "^1.1.1", + "ob1": "^0.80.6", + "object-assign": "^4.1.1", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.5", + "object.entries": "^1.1.7", + "object.fromentries": "^2.0.7", + "object.hasown": "^1.1.3", + "object.values": "^1.1.7", + "on-finished": "^2.4.1", + "on-headers": "^1.0.2", + "once": "^1.4.0", + "onetime": "^5.1.2", + "open": "^7.4.2", + "optionator": "^0.9.3", + "ora": "^5.4.1", + "os-name": "^5.1.0", + "os-tmpdir": "^1.0.2", + "p-cancelable": "^3.0.0", + "p-limit": "^3.1.0", + "p-locate": "^4.1.0", + "p-map": "^4.0.0", + "p-try": "^2.2.0", + "pac-proxy-agent": "^6.0.4", + "pac-resolver": "^6.0.2", + "package-json": "^8.1.1", + "parent-module": "^1.0.1", + "parse-json": "^5.2.0", + "parse-path": "^7.0.0", + "parse-url": "^8.1.0", + "parseurl": "^1.3.3", + "path-exists": "^4.0.0", + "path-is-absolute": "^1.0.1", + "path-key": "^3.1.1", + "path-parse": "^1.0.7", + "path-scurry": "^1.10.1", + "path-type": "^4.0.0", + "picocolors": "^1.0.0", + "picomatch": "^2.3.1", + "pify": "^2.3.0", + "pirates": "^4.0.6", + "pkg-dir": "^4.2.0", + "possible-typed-array-names": "^1.0.0", + "prelude-ls": "^1.2.1", + "prettier-linter-helpers": "^1.0.0", + "pretty-format": "^29.7.0", + "proc-log": "^3.0.0", + "process-nextick-args": "^2.0.1", + "promise": "^8.3.0", + "promise-retry": "^2.0.1", + "promise.allsettled": "^1.0.6", + "prompts": "^2.4.2", + "prop-types": "^15.8.1", + "proto-list": "^1.2.4", + "protocols": "^2.0.1", + "proxy-agent": "^6.2.1", + "proxy-from-env": "^1.1.0", + "pump": "^3.0.0", + "punycode": "^2.3.1", + "pupa": "^3.1.0", + "pure-rand": "^6.0.4", + "q": "^1.5.1", + "queue": "^6.0.2", + "queue-microtask": "^1.2.3", + "quick-lru": "^5.1.1", + "range-parser": "^1.2.1", + "rc": "^1.2.8", + "react-devtools-core": "^4.28.5", + "react-is": "^18.2.0", + "react-refresh": "^0.14.0", + "react-shallow-renderer": "^16.15.0", + "read-pkg": "^3.0.0", + "read-pkg-up": "^7.0.1", + "readable-stream": "^3.6.2", + "readline": "^1.3.0", + "recast": "^0.21.5", + "rechoir": "^0.6.2", + "redent": "^3.0.0", + "reflect.getprototypeof": "^1.0.5", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.1", + "regenerator-runtime": "^0.14.1", + "regenerator-transform": "^0.15.2", + "regexp.prototype.flags": "^1.5.2", + "regexpu-core": "^5.3.2", + "registry-auth-token": "^5.0.2", + "registry-url": "^6.0.1", + "regjsparser": "^0.9.1", + "require-directory": "^2.1.1", + "require-from-string": "^2.0.2", + "require-main-filename": "^2.0.0", + "resolve": "^1.22.8", + "resolve-alpn": "^1.2.1", + "resolve-cwd": "^3.0.0", + "resolve-from": "^5.0.0", + "resolve-global": "^1.0.0", + "resolve.exports": "^2.0.2", + "responselike": "^3.0.0", + "restore-cursor": "^3.1.0", + "retry": "^0.13.1", + "reusify": "^1.0.4", + "rimraf": "^3.0.2", + "run-applescript": "^5.0.0", + "run-async": "^3.0.0", + "run-parallel": "^1.2.0", + "rxjs": "^7.8.1", + "safe-array-concat": "^1.1.0", + "safe-buffer": "^5.2.1", + "safe-regex-test": "^1.0.3", + "safer-buffer": "^2.1.2", + "scheduler": "^0.24.0-canary-efb381bbf-20230505", + "semver": "^7.6.0", + "semver-diff": "^4.0.0", + "send": "^0.18.0", + "serialize-error": "^2.1.0", + "serve-static": "^1.15.0", + "set-blocking": "^2.0.0", + "set-function-length": "^1.2.1", + "set-function-name": "^2.0.2", + "setprototypeof": "^1.2.0", + "shallow-clone": "^3.0.1", + "shebang-command": "^2.0.0", + "shebang-regex": "^3.0.0", + "shell-quote": "^1.8.1", + "shelljs": "^0.8.5", + "side-channel": "^1.0.6", + "signal-exit": "^3.0.7", + "sisteransi": "^1.0.5", + "slash": "^3.0.0", + "slice-ansi": "^2.1.0", + "smart-buffer": "^4.2.0", + "socks": "^2.8.1", + "socks-proxy-agent": "^8.0.2", + "source-map": "^0.6.1", + "source-map-support": "^0.5.21", + "spdx-correct": "^3.2.0", + "spdx-exceptions": "^2.5.0", + "spdx-expression-parse": "^3.0.1", + "spdx-license-ids": "^3.0.17", + "split": "^1.0.1", + "split2": "^3.2.2", + "sprintf-js": "^1.1.3", + "ssri": "^10.0.5", + "stack-utils": "^2.0.6", + "stackframe": "^1.3.4", + "stacktrace-parser": "^0.1.10", + "statuses": "^2.0.1", + "stdin-discarder": "^0.1.0", + "stop-iteration-iterator": "^1.0.0", + "string-length": "^4.0.2", + "string-natural-compare": "^3.0.1", + "string-width": "^4.2.3", + "string-width-cjs": "^4.2.3", + "string.prototype.matchall": "^4.0.10", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "string_decoder": "^1.3.0", + "strip-ansi": "^6.0.1", + "strip-ansi-cjs": "^6.0.1", + "strip-bom": "^3.0.0", + "strip-final-newline": "^2.0.0", + "strip-indent": "^3.0.0", + "strip-json-comments": "^3.1.1", + "strnum": "^1.0.5", + "sudo-prompt": "^9.2.1", + "supports-color": "^7.2.0", + "supports-preserve-symlinks-flag": "^1.0.0", + "synckit": "^0.8.8", + "tar": "^6.2.0", + "temp": "^0.8.4", + "temp-dir": "^2.0.0", + "terser": "^5.29.1", + "test-exclude": "^6.0.0", + "text-extensions": "^1.9.0", + "text-table": "^0.2.0", + "throat": "^5.0.0", + "through": "^2.3.8", + "through2": "^4.0.2", + "titleize": "^3.0.0", + "tmp": "^0.0.33", + "tmpl": "^1.0.5", + "to-fast-properties": "^2.0.0", + "to-regex-range": "^5.0.1", + "toidentifier": "^1.0.1", + "tr46": "^0.0.3", + "trim-newlines": "^3.0.1", + "ts-node": "^10.9.2", + "tslib": "^2.6.2", + "tsutils": "^3.21.0", + "type-check": "^0.4.0", + "type-detect": "^4.0.8", + "type-fest": "^1.4.0", + "typed-array-buffer": "^1.0.2", + "typed-array-byte-length": "^1.0.1", + "typed-array-byte-offset": "^1.0.2", + "typed-array-length": "^1.0.5", + "typedarray": "^0.0.6", + "typedarray-to-buffer": "^3.1.5", + "uglify-js": "^3.17.4", + "unbox-primitive": "^1.0.2", + "unc-path-regex": "^0.1.2", + "undici-types": "^5.26.5", + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0", + "unicode-property-aliases-ecmascript": "^2.1.0", + "unique-filename": "^3.0.0", + "unique-slug": "^4.0.0", + "unique-string": "^3.0.0", + "universal-user-agent": "^6.0.1", + "universalify": "^2.0.1", + "unpipe": "^1.0.0", + "untildify": "^4.0.0", + "update-browserslist-db": "^1.0.13", + "update-notifier": "^6.0.2", + "uri-js": "^4.4.1", + "url-join": "^5.0.0", + "util-deprecate": "^1.0.2", + "utils-merge": "^1.0.1", + "v8-compile-cache-lib": "^3.0.1", + "v8-to-istanbul": "^9.2.0", + "validate-npm-package-license": "^3.0.4", + "vary": "^1.1.2", + "vlq": "^1.0.1", + "vm2": "^3.9.19", + "walker": "^1.0.8", + "wcwidth": "^1.0.1", + "web-streams-polyfill": "^3.3.3", + "webidl-conversions": "^3.0.1", + "whatwg-fetch": "^3.6.20", + "whatwg-url": "^5.0.0", + "which": "^2.0.2", + "which-boxed-primitive": "^1.0.2", + "which-builtin-type": "^1.1.3", + "which-collection": "^1.0.2", + "which-module": "^2.0.1", + "which-typed-array": "^1.1.14", + "widest-line": "^4.0.1", + "wildcard-match": "^5.1.2", + "windows-release": "^5.1.1", + "word-wrap": "^1.2.5", + "wordwrap": "^1.0.0", + "wrap-ansi": "^7.0.0", + "wrap-ansi-cjs": "^7.0.0", + "wrappy": "^1.0.2", + "write-file-atomic": "^2.4.3", + "ws": "^7.5.9", + "xdg-basedir": "^5.1.0", + "xtend": "^4.0.2", + "y18n": "^5.0.8", + "yallist": "^4.0.0", + "yaml": "^1.10.2", + "yargs": "^17.7.2", + "yargs-parser": "^20.2.9", + "yn": "^3.1.1", + "yocto-queue": "^0.1.0" } } diff --git a/tsconfig.json b/tsconfig.json index 807de51..465fd9c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "rootDir": ".", "paths": { - "react-native-responsive-design": ["./src/index"] + "react-native-dimensions-layout": ["./src/index"] }, "allowUnreachableCode": false, "allowUnusedLabels": false, diff --git a/yarn.lock b/yarn.lock index a656be0..6e63752 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14696,9 +14696,9 @@ __metadata: languageName: node linkType: hard -"react-native-responsive-design-example@workspace:example": +"react-native-dimensions-layout-example@workspace:example": version: 0.0.0-use.local - resolution: "react-native-responsive-design-example@workspace:example" + resolution: "react-native-dimensions-layout-example@workspace:example" dependencies: "@babel/core": ^7.20.0 "@expo/webpack-config": ^18.0.1 @@ -14713,9 +14713,9 @@ __metadata: languageName: unknown linkType: soft -"react-native-responsive-design@workspace:.": +"react-native-dimensions-layout@workspace:.": version: 0.0.0-use.local - resolution: "react-native-responsive-design@workspace:." + resolution: "react-native-dimensions-layout@workspace:." dependencies: "@commitlint/config-conventional": ^17.0.2 "@evilmartians/lefthook": ^1.5.0