A React Native component that automatically detects and makes URLs, emails, and fuzzy links clickable within text.
react-native-hyperlink is a React Native component that automatically detects URLs, email addresses, and fuzzy links within text and makes them clickable. It solves the problem of manually parsing text to add interactive links, providing a simple, declarative way to enhance text content with link functionality.
React Native and react-native-web developers who need to display text with clickable links, such as in chat apps, content viewers, or any app displaying user-generated content.
Developers choose react-native-hyperlink for its ease of use, flexibility in styling and event handling, and support for nested text structures, eliminating the need for custom link parsing logic.
A <Hyperlink /> component for react-native that makes urls, fuzzy links, emails etc clickable
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages the robust linkify-it library to reliably identify URLs, emails, and fuzzy links, eliminating the need for custom regex or manual parsing.
Offers linkStyle for custom styles and onPress/onLongPress callbacks for handling interactions, allowing developers to tailor link appearance and behavior easily.
Works seamlessly with nested Text components in React Native, ensuring compatibility with complex layouts without breaking text structure.
Includes linkDefault prop to use React Native's Linking API for opening links, providing a straightforward cross-platform solution out of the box.
Only handles link detection; it doesn't support other rich text features like Markdown, HTML, or media, which may require additional libraries or workarounds.
Relies on linkify-it for parsing, meaning updates or issues with that library can directly affect this component, adding maintenance overhead.
Parsing text on every render for links could impact performance in apps with frequent text updates or very long content blocks, as noted in the dependency on linkify-it.