UNPKG

react-native-permissions

Version:

An unified permissions API for React Native on iOS, Android and Windows

141 lines (140 loc) 3.61 kB
{ "name": "react-native-permissions", "version": "5.5.1", "license": "MIT", "description": "An unified permissions API for React Native on iOS, Android and Windows", "author": "Mathieu Acthernoene <zoontek@gmail.com>", "homepage": "https://github.com/zoontek/react-native-permissions#readme", "repository": { "type": "git", "url": "https://github.com/zoontek/react-native-permissions.git" }, "keywords": [ "react-native", "react native", "react-native-windows", "permission", "authorization" ], "main": "./dist/commonjs/index.js", "module": "./dist/module/index.js", "types": "./dist/typescript/commonjs/index.d.ts", "exports": { ".": { "import": { "types": "./dist/typescript/module/index.d.ts", "default": "./dist/module/index.js" }, "require": { "types": "./dist/typescript/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } }, "./expo": { "import": { "types": "./dist/typescript/module/extras/expo.d.ts", "default": "./dist/module/extras/expo.js" }, "require": { "types": "./dist/typescript/commonjs/extras/expo.d.ts", "default": "./dist/commonjs/extras/expo.js" } }, "./mock": { "import": { "types": "./dist/typescript/module/extras/mock.d.ts", "default": "./dist/module/extras/mock.js" }, "require": { "types": "./dist/typescript/commonjs/extras/mock.d.ts", "default": "./dist/commonjs/extras/mock.js" } }, "./app.plugin.js": "./app.plugin.js", "./package.json": "./package.json", "./scripts/setup.rb": "./scripts/setup.rb" }, "files": [ "/android", "!/android/build", "/dist", "/ios", "/scripts/setup.rb", "/windows", "/src", "/*.podspec", "app.plugin.js" ], "scripts": { "clean": "rm -rf dist", "format": "prettier '**/*' -u -w", "lint": "oxlint", "typecheck": "tsc --noEmit", "build": "yarn clean && bob build", "podspec-check": "node scripts/podspec-check.mts", "prepack": "prettier '**/*' -u -c && yarn lint && yarn typecheck && yarn podspec-check && yarn build" }, "react-native-builder-bob": { "source": "src", "output": "dist", "targets": [ "typescript", [ "module", { "esm": true } ], [ "commonjs", { "esm": true } ] ] }, "codegenConfig": { "name": "RNPermissionsSpec", "type": "modules", "jsSrcsDir": "./src/specs", "android": { "javaPackageName": "com.zoontek.rnpermissions" }, "windows": { "namespace": "RNPermissionsCodegen", "outputDirectory": "windows/RNPermissions/codegen", "separateDataTypes": true } }, "peerDependencies": { "react": "*", "react-native": "*", "react-native-windows": "*" }, "peerDependenciesMeta": { "react-native-windows": { "optional": true } }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@expo/config-plugins": "*", "@types/jest": "^29.5.14", "@types/react": "^19.2.0", "oxlint": "^1.51.0", "prettier": "^3.8.1", "prettier-plugin-organize-imports": "^4.3.0", "react": "19.2.3", "react-native": "0.84.1", "react-native-builder-bob": "^0.40.18", "typescript": "^5.9.3" }, "react-native-windows": { "init-windows": { "name": "RNPermissions", "namespace": "RNPermissions", "template": "cpp-lib" } } }