@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
193 lines (192 loc) • 4.48 kB
JSON
{
"name": "@futurejj/react-native-visibility-sensor",
"version": "1.4.6",
"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",
"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 workspace @futurejj/react-native-visibility-sensor-example"
},
"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": "^10.0.3",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.2",
"@semantic-release/npm": "^13.1.3",
"@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": "^19.1.0",
"semantic-release": "^25.0.2",
"typescript": "5.0.4"
},
"resolutions": {
"@types/react": "~18.3.5"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"workspaces": [
"example"
],
"engines": {
"node": ">=22"
},
"packageManager": "yarn@4.9.4",
"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"
}
]
}