UNPKG

sonner-native

Version:

An opinionated toast component for React Native. A port of @emilkowalski's sonner.

209 lines (208 loc) 5.09 kB
{ "name": "sonner-native", "version": "0.23.0", "description": "An opinionated toast component for React Native. A port of @emilkowalski's sonner.", "source": "./src/index.tsx", "main": "./lib/module/index.js", "types": "./lib/typescript/src/index.d.ts", "exports": { ".": { "source": "./src/index.tsx", "types": "./lib/typescript/src/index.d.ts", "default": "./lib/module/index.js" }, "./package.json": "./package.json" }, "files": [ "src", "lib", "android", "ios", "cpp", "*.podspec", "!ios/build", "!android/build", "!android/gradle", "!android/gradlew", "!android/gradlew.bat", "!android/local.properties", "!**/__tests__", "!**/__fixtures__", "!**/__mocks__", "!**/.*" ], "scripts": { "example": "yarn workspace sonner-native-example", "test": "jest", "typecheck": "tsc", "lint": "eslint \"**/*.{js,ts,tsx}\"", "clean": "del-cli lib", "prepare": "bob build", "release": "release-it" }, "keywords": [ "react-native", "ios", "android", "toast", "toasts", "reanimated", "sonner", "sonner-native" ], "repository": { "type": "git", "url": "git+https://github.com/gunnartorfis/sonner-native.git" }, "author": "Gunnar Torfi <gunnartorfis@gmail.com> (https://github.com/gunnartorfis)", "license": "MIT", "bugs": { "url": "https://github.com/gunnartorfis/sonner-native/issues" }, "homepage": "https://github.com/gunnartorfis/sonner-native#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/eslint-parser": "^7.25.1", "@commitlint/config-conventional": "^19.8.1", "@evilmartians/lefthook": "^1.13.6", "@react-native/babel-preset": "0.83.0", "@react-native/eslint-config": "^0.83.0", "@react-native/eslint-plugin": "0.83.0", "@release-it/conventional-changelog": "^10.0.4", "@types/jest": "^30.0.0", "@types/react": "~19.1.10", "@typescript-eslint/eslint-plugin": "^8.36.0", "@typescript-eslint/parser": "^8.36.0", "commitlint": "^19.8.1", "del-cli": "^6.0.0", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.2", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-ft-flow": "^2.0.1", "eslint-plugin-jest": "^29.0.1", "eslint-plugin-prettier": "^5.5.4", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-native": "^4.0.0", "jest": "^30.2.0", "prettier": "^3.7.4", "react": "19.1.0", "react-native": "0.81.5", "react-native-builder-bob": "^0.40.17", "react-native-gesture-handler": "~2.28.0", "react-native-reanimated": "~4.1.1", "react-native-safe-area-context": "~5.6.0", "react-native-screens": "~4.16.0", "react-native-svg": "15.12.1", "release-it": "^19.1.0", "typescript": "~5.9.3" }, "peerDependencies": { "react": "*", "react-native": "*", "react-native-gesture-handler": ">=2.16.1", "react-native-reanimated": ">=3.10.1", "react-native-safe-area-context": ">=4.10.5", "react-native-screens": ">=3.31.1", "react-native-svg": ">=15.6.0" }, "workspaces": [ "example", "docs" ], "packageManager": "yarn@4.12.0", "jest": { "preset": "react-native", "modulePathIgnorePatterns": [ "<rootDir>/example/node_modules", "<rootDir>/lib/" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "release-it": { "git": { "commitMessage": "chore: release ${version}", "tagName": "v${version}" }, "npm": { "publish": true }, "github": { "release": true }, "plugins": { "@release-it/conventional-changelog": { "preset": { "name": "angular" }, "infile": "CHANGELOG.md" } } }, "eslintConfig": { "root": true, "extends": [ "@react-native", "prettier" ], "plugins": [ "prettier", "react-hooks" ], "rules": { "react/react-in-jsx-scope": "off", "react-native/no-inline-styles": "off", "react-hooks/exhaustive-deps": "error", "prettier/prettier": [ "error", { "quoteProps": "consistent", "singleQuote": true, "tabWidth": 2, "trailingComma": "es5", "useTabs": false } ] } }, "eslintIgnore": [ "node_modules/", "lib/" ], "prettier": { "quoteProps": "consistent", "singleQuote": true, "tabWidth": 2, "trailingComma": "es5", "useTabs": false }, "react-native-builder-bob": { "source": "src", "output": "lib", "targets": [ [ "module", { "esm": true } ], [ "typescript", { "project": "tsconfig.build.json" } ] ] }, "create-react-native-library": { "type": "library", "version": "0.41.0" } }