{"id":15067183,"url":"https://github.com/andresribeiro/react-native-hyperlinks","last_synced_at":"2025-04-10T13:54:57.662Z","repository":{"id":65145296,"uuid":"583676402","full_name":"andresribeiro/react-native-hyperlinks","owner":"andresribeiro","description":"A simple and customizable library to display hyperlinks in React Native","archived":false,"fork":false,"pushed_at":"2023-12-27T17:53:00.000Z","size":99,"stargazers_count":28,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T11:19:19.849Z","etag":null,"topics":["fuzzy-links","hashtag","hyperlink","hyperlinks","hypertext","link","mention","react-native","url"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andresribeiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-30T14:37:47.000Z","updated_at":"2024-10-08T17:05:15.000Z","dependencies_parsed_at":"2024-09-29T11:42:09.671Z","dependency_job_id":"5a44fd6b-d6e1-4dbf-bf21-5221820fe0fc","html_url":"https://github.com/andresribeiro/react-native-hyperlinks","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"7e04482537c7a828170f75a43a7ecd7683e8cb95"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Freact-native-hyperlinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Freact-native-hyperlinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Freact-native-hyperlinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Freact-native-hyperlinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andresribeiro","download_url":"https://codeload.github.com/andresribeiro/react-native-hyperlinks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248229493,"owners_count":21068909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fuzzy-links","hashtag","hyperlink","hyperlinks","hypertext","link","mention","react-native","url"],"created_at":"2024-09-25T01:17:42.377Z","updated_at":"2025-04-10T13:54:57.642Z","avatar_url":"https://github.com/andresribeiro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple and customizable library to display hyperlinks in React Native\n\n### Features ✨\n\n- 🛑 Automatic detection for links, mentions and hashtags\n- 🔤 Full unicode support\n- 🌐 International domains support\n- 💅 Custom hyperlink style\n- ⚙️ Custom linkify-it instance\n- 📦 Tiny\n- 🚀 Created with Typescript\n\n\u003cimg alt=\"Without this library vs with this library\" src=\"assets/screenshot.jpg\" width=\"500\"/\u003e\n\n### About 🗞️\n\nUses [linkify-it](https://github.com/markdown-it/linkify-it) under the hood. Created for my social network app, [Rybun](https://rybun.com)\n\n### Installation ⚙️\n\n```bash\nyarn add react-native-hyperlinks linkify-it\n```\n\n### Usage 🔨\n\n```tsx\nimport React from \"react\";\nimport { Linking } from \"react-native\";\nimport Hyperlinks from \"react-native-hyperlinks\";\n\nexport default function App() {\n  function handleOnLinkPress(link: string) {\n    console.log(link)\n  }\n\n  function handleOnMentionPress (username: string) {\n    console.log(username)\n  }\n\n  function handleOnHashtagPress (tag: string) {\n    console.log(tag)\n  }\n\n  return (\n    \u003cHyperlinks\n      text=\"Hello!! @andresribeiro #hi https://duck.com aaaaa\"\n      style={{ fontSize: 18 }}\n      hyperlinkStyle={{ color: 'purple' }}\n      onLinkPress={handleOnLinkPress}\n      onMentionPress={handleOnMentionPress}\n      onHashtagPress={handleOnHashtagPress}\n    /\u003e\n  );\n}\n```\n\n### Props ✍️\n\n| Property | Default | Type | Required\n| ---- | ---- | ---- | ----\n| `text` | `undefined` | `string` | `true`\n| `hyperlinkStyle` | `undefined` | `StyleProp\u003cTextStyle\u003e` | `false`\n| `autoDetectMentions` | `true` | `boolean` | `false`\n| `autoDetectHastags` | `true` | `boolean` | `false`\n| `customHyperlinks` | `undefined` | `CustomHyperlink[]` | `false`\n| `onLinkPress` | `undefined` | `(link: string) =\u003e unknown` | `false`\n| `onMentionPress` | `undefined` | `(username: string) =\u003e unknown` | `false`\n| `onHashtagPress` | `undefined` | `(tag: string) =\u003e unknown` | `false`\n| `onCustomHyperlinkPress` | `undefined` | `(hyperlink: CustomHyperlink) =\u003e unknown` | `false`\n| `linkify` | `linkifyIt()` | `linkifyIt.LinkifyIt` | `false`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresribeiro%2Freact-native-hyperlinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandresribeiro%2Freact-native-hyperlinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresribeiro%2Freact-native-hyperlinks/lists"}