{"repo":"pablogdcr/react-native-data-detector","free":true,"listed":false,"github":"https://github.com/pablogdcr/react-native-data-detector","clone":"git clone https://github.com/pablogdcr/react-native-data-detector.git","description":"Cross-platform text data detection for React Native. Uses NSDataDetector on iOS and ML Kit Entity Extraction on Android to detect phone numbers, URLs, emails, dates, and addresses.","language":"TypeScript","stars":294,"topics":["entity-extraction","expo","mlkit","nsdatadetector","react-native","data-detector"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-data-detector Cross-platform text data detection for React Native. Uses NSDataDetector on iOS and ML Kit Entity Extraction on Android to detect phone numbers, URLs, emails, dates, and addresses — returning structured results to JavaScript. Features - Phone numbers — Detect and extract phone numbers - URLs — Detect web links - Emails — Detect email addresses - Addresses — Detect street addresses with parsed components (iOS) - Dates — Detect dates and times with ISO 8601 output - Native accuracy — Uses native APIs instead of regex - React hooks — useDataDetector (imperative) and useDetectedEntities (reactive, as-you-type); both track model readiness and auto-download on Android - Multiple languages — Choose from 15 ML Kit language models on Android - Expo Modules API — Built with the modern Expo native module system Installation iOS Android The ML Kit entity extraction model ( 5.6MB per language) is downloaded on the user's device at runtime. You can control when this happens using prepareModel() or the useDataDetector hook (which downloads automatically on mount) — for example, to ensure detect() works offline later. If you don't trigger it explicitly, the model is downloaded automatically on the first detect() call. Usage Functions Hooks There are two hooks for two situations: - useDataDetector — imperative . Tracks model readiness and hands you a detect function you call yourself (e.g. once per chat message). - useDetectedEntities — reactive . Pass it a (changin","default_branch":null,"files":null,"tree":[],"storefront":"/r/pablogdcr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pablogdcr/react-native-data-detector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}