UNPKG

@futurejj/react-native-visibility-sensor

Version:

A React Native wrapper to check whether a component is in the view port to track impressions and clicks

192 lines (191 loc) 4.47 kB
{ "name": "@futurejj/react-native-visibility-sensor", "version": "1.3.21", "description": "A React Native wrapper to check whether a component is in the view port to track impressions and clicks", "main": "lib/commonjs/index", "module": "lib/module/index", "types": "lib/typescript/index.d.ts", "react-native": "src/index", "source": "src/index", "private": false, "files": [ "src", "lib", "android", "ios", "cpp", "*.podspec", "!lib/typescript/example", "!ios/build", "!android/build", "!android/gradle", "!android/gradlew", "!android/gradlew.bat", "!android/local.properties", "!**/__tests__", "!**/__fixtures__", "!**/__mocks__", "!**/.*" ], "scripts": { "test": "jest", "typecheck": "tsc --noEmit", "lint": "eslint \"**/*.{js,ts,tsx}\"", "prepack": "bob build", "release": "release-it", "example": "yarn --cwd example", "bootstrap": "yarn example && yarn install" }, "keywords": [ "react-native", "ios", "android", "visibility-sensor", "visibility", "sensor", "visibilitysensor", "in-view", "inview" ], "repository": { "type": "git", "url": "git+https://github.com/JairajJangle/react-native-visibility-sensor.git" }, "author": "https://github.com/JairajJangle", "license": "MIT", "bugs": { "url": "https://github.com/JairajJangle/react-native-visibility-sensor/issues" }, "homepage": "https://github.com/JairajJangle/react-native-visibility-sensor#readme", "publishConfig": { "registry": "https://registry.npmjs.org/", "provenance": true }, "devDependencies": { "@commitlint/config-conventional": "^17.0.2", "@evilmartians/lefthook": "^1.7.15", "@react-native-community/eslint-config": "^3.2.0", "@release-it/conventional-changelog": "^8.0.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^10.3.3", "@semantic-release/npm": "^12.0.1", "@types/jest": "^29.5.12", "@types/react": "~18.3.5", "commitlint": "^19.4.1", "del-cli": "^5.1.0", "eslint": "^8.4.1", "eslint-config-prettier": "^10.1.1", "eslint-plugin-prettier": "^5.2.6", "jest": "^29.7.0", "metro-react-native-babel-preset": "^0.77.0", "prettier": "^3.3.3", "react": "18.3.1", "react-native": "0.76.9", "react-native-builder-bob": "^0.30.0", "release-it": "^18.1.2", "semantic-release": "^24.2.3", "typescript": "5.0.4" }, "resolutions": { "@types/react": "~18.3.5" }, "peerDependencies": { "react": "*", "react-native": "*" }, "engines": { "node": ">=18" }, "packageManager": "yarn@1.22.22", "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, "publishArgs": [ "--access public" ] }, "github": { "release": true }, "plugins": { "@release-it/conventional-changelog": { "preset": "angular" } } }, "eslintConfig": { "root": true, "extends": [ "@react-native-community", "prettier" ], "rules": { "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": [ "commonjs", "module", [ "typescript", { "project": "tsconfig.build.json" } ] ] }, "funding": [ { "type": "individual", "url": "https://www.paypal.com/paypalme/jairajjangle001/usd" }, { "type": "individual", "url": "https://liberapay.com/FutureJJ/donate" }, { "type": "individual", "url": "https://ko-fi.com/futurejj" } ] }