UNPKG

sonner-native

Version:

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

191 lines (190 loc) 4.9 kB
{ "name": "sonner-native", "version": "0.26.1", "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": "pnpm --filter 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.28.5", "@commitlint/config-conventional": "^19.8.1", "@evilmartians/lefthook": "^1.13.6", "@react-native/babel-preset": "~0.83.1", "@release-it/conventional-changelog": "^10.0.4", "@types/jest": "^30.0.0", "@types/react": "~19.2.8", "commitlint": "^19.8.1", "del-cli": "^6.0.0", "eslint": "^10.1.0", "eslint-plugin-react-hooks": "^7.0.1", "jest": "^30.2.0", "prettier": "^3.7.4", "react": "19.2.0", "react-native": "0.83.4", "react-native-builder-bob": "^0.41.0", "react-native-gesture-handler": "~2.30.1", "react-native-reanimated": "4.2.1", "react-native-safe-area-context": "~5.6.0", "react-native-screens": "~4.23.0", "react-native-svg": "15.15.3", "react-native-worklets": "0.7.4", "release-it": "^17.11.0", "typescript": "~5.9.3", "typescript-eslint": "^8.58.0" }, "peerDependencies": { "react": "*", "react-native": "*", "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", "react-native-worklets": "^0.6.1 || ^0.7.0 || ^0.8.0" }, "workspaces": [ "example", "docs" ], "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319", "pnpm": { "onlyBuiltDependencies": [ "@evilmartians/lefthook" ], "overrides": { "@expo/log-box": "55.0.10" } }, "jest": { "preset": "react-native", "setupFilesAfterEnv": [ "<rootDir>/src/__tests__/setup.ts" ], "testPathIgnorePatterns": [ "<rootDir>/node_modules/", "<rootDir>/lib/", "<rootDir>/example/", "src/__tests__/toast-comparator.test.tsx" ], "modulePathIgnorePatterns": [ "<rootDir>/example/node_modules", "<rootDir>/lib/" ], "collectCoverageFrom": [ "src/**/*.{ts,tsx}", "!src/**/*.d.ts", "!src/__tests__/**/*", "!src/index.tsx" ], "transformIgnorePatterns": [ "node_modules/(?!(.pnpm|react-native|@react-native|react-native-reanimated|react-native-gesture-handler|react-native-screens|react-native-safe-area-context|react-native-svg)/)" ] }, "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" } } }, "prettier": { "quoteProps": "consistent", "singleQuote": true, "tabWidth": 2, "trailingComma": "es5", "useTabs": false }, "react-native-builder-bob": { "source": "src", "output": "lib", "targets": [ [ "module", { "esm": true } ], "typescript" ] }, "create-react-native-library": { "type": "library", "version": "0.41.0" } }