obipawan / react-native-hyperlink

A <Hyperlink /> component for react-native that makes urls, fuzzy links, emails etc clickable
MIT License
801 stars 76 forks source link

Handle linkify prop being optional #45

Closed stianjensen closed 4 years ago

stianjensen commented 4 years ago

This fixes https://github.com/obipawan/react-native-hyperlink/issues/44

stianjensen commented 4 years ago

This still has the downside of a new instance being created each render if a prop is not provided, but it is at least not happening also when you do provide a custom prop. A bit more reworking will be required to ensure that a new linkify-it instance is created only once when a prop is not provided.

stianjensen commented 4 years ago

Not needed after release of v0.0.18