{"id":21763424,"url":"https://github.com/ramprog/react-native-text-link","last_synced_at":"2025-04-13T13:41:57.491Z","repository":{"id":56933826,"uuid":"478988242","full_name":"RamProg/react-native-text-link","owner":"RamProg","description":"Simple module for React Native Apps to allow easy links inside your text, without any positioning issues. This solves the cases when a TouchableOpacity/Pressable has a different positioning than regular text.","archived":false,"fork":false,"pushed_at":"2023-10-06T09:55:42.000Z","size":83,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T04:41:36.440Z","etag":null,"topics":["app","format","inside","link","native","react","text"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RamProg.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-07T13:03:56.000Z","updated_at":"2024-05-13T18:12:09.000Z","dependencies_parsed_at":"2024-06-21T18:54:49.824Z","dependency_job_id":"e989b880-8a95-4430-8ae8-2fa4de243005","html_url":"https://github.com/RamProg/react-native-text-link","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamProg%2Freact-native-text-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamProg%2Freact-native-text-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamProg%2Freact-native-text-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamProg%2Freact-native-text-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RamProg","download_url":"https://codeload.github.com/RamProg/react-native-text-link/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724425,"owners_count":21151557,"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":["app","format","inside","link","native","react","text"],"created_at":"2024-11-26T12:15:20.552Z","updated_at":"2025-04-13T13:41:57.471Z","avatar_url":"https://github.com/RamProg.png","language":"TypeScript","readme":"# TextLink\n\nWhen you need to insert a link inside a text in React Native, you might notice that the links have a different positioning, they are usually around 5 pixels under the line. This happens because the link is actually inside a View (wrapped in a Pressable/TouchableOpacity), so the positioning of the elements is different between a Text and a View.\n\nThis package aims to easily solve this while still looking clean. Using this package you will be able to provide a different Style while the link is being pressed.\n\n# Usage\n\nFirst install:\n\n    npm i react-native-text-link\nThen import: \n\n    import  TextLink  from  'react-native-text-link';\nThen use:\n```js\n\u003cTextLink links={[\n\t{\n\t\ttext: 'Terms \u0026 Conditions',\n\t\tonPress: () =\u003e  console.log('link to terms'),\n\t},\n\t{\n\t\ttext: 'Privacy Policy',\n\t\tonPress: () =\u003e  console.log('link to privacy'),\n\t},\n]}\u003e\nPlease read our Terms \u0026 Conditions and our Privacy Policy.\n\u003c/TextLink\u003e\n```\n\n## Features\n\n|props|type|use|\n|--|--| --|\n| textStyle | StyleProp\u003cTextStyle\u003e |default style for text\n| textLinkStyle| StyleProp\u003cTextStyle\u003e |\tstyle for the links\n| pressingLinkStyle|StyleProp\u003cTextStyle\u003e |style for the links while they are being pressed\n| links | [{ text: string, onPress: () =\u003e void }]\t| strings that will act as links and the action they will trigger\n|children| string |the whole text in which the links will be found\n\n\n## License and Constributions\n\nMIT License and thanks to react-native-parsed-text\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framprog%2Freact-native-text-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framprog%2Freact-native-text-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framprog%2Freact-native-text-link/lists"}