UNPKG

@sanar/react-native-highlight-text

Version:

A React Native port of react-native-highlight-words. This component is used to highlight words within a larger body of text.

114 lines (113 loc) 3.08 kB
{ "name": "@sanar/react-native-highlight-text", "version": "1.0.2", "description": "A React Native port of react-native-highlight-words. This component is used to highlight words within a larger body of text.", "main": "lib/commonjs/index.js", "react-native": "lib/module/index.js", "module": "lib/module/index.js", "types": "lib/typescript/index.d.ts", "files": [ "lib", "src", "README.md" ], "scripts": { "prepare": "bob build", "release": "dotenv release-it", "check-code": "yarn prettier && yarn lint && yarn tsc --noEmit", "lint": "eslint src/index.tsx", "prettier": "prettier --write **/*.{js,tsx,json}", "test": "jest --verbose", "test:coverage": "jest --coverage", "test:watch": "jest --verbose --watch" }, "keywords": [ "react-native", "react", "reactjs", "react-component", "highlighter", "highlight", "text", "words", "matches", "substring", "occurrences", "search" ], "author": "Sanar Tech", "license": "MIT", "homepage": "https://github.com/sanar/react-native-highlight-text", "bugs": { "url": "https://github.com/sanar/react-native-highlight-text/issues" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "repository": { "type": "git", "url": "git+https://github.com/sanar/react-native-highlight-text.git" }, "dependencies": { "highlight-words-core": "^1.2.0", "prop-types": "^15.7.2" }, "devDependencies": { "@babel/core": "^7.6.2", "@babel/runtime": "^7.6.2", "@commitlint/cli": "^8.3.5", "@commitlint/config-conventional": "^8.3.4", "@react-native-community/bob": "^0.16.0", "@react-native-community/eslint-config": "^1.1.0", "@react-native-community/eslint-plugin": "^1.1.0", "@release-it/conventional-changelog": "^1.1.4", "@testing-library/jest-native": "^3.1.0", "@types/highlight-words-core": "^1.2.0", "@types/jest": "^25.2.3", "@types/react-native": "^0.62.12", "@types/react-test-renderer": "16.9.2", "@typescript-eslint/eslint-plugin": "^3.1.0", "@typescript-eslint/parser": "^3.1.0", "babel-jest": "^26.0.1", "dotenv-cli": "^3.2.0", "eslint": "^7.1.0", "eslint-plugin-prettier": "^3.1.3", "husky": "^4.2.5", "jest": "^26.0.1", "lint-staged": "^10.2.7", "metro-react-native-babel-preset": "^0.59.0", "prettier": "^2.0.5", "react": "16.9.0", "react-native": "0.61.5", "react-test-renderer": "16.9.0", "release-it": "^13.6.3", "typescript": "3.8.3" }, "peerDependencies": { "react": "*", "react-native": "*" }, "husky": { "hooks": { "pre-commit": "lint-staged", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "lint-staged": { "*.{js,ts,tsx}": [ "yarn prettier", "yarn lint", "yarn tsc --noEmit" ] }, "@react-native-community/bob": { "source": "src", "output": "lib", "targets": [ "commonjs", "module", "typescript" ] } }