React Native Autolink Versions Save

Automatic linking of URLs, phone numbers, emails, handles, and even custom patterns in text for React Native

1.8.1

5 years ago

Bug Fixes:

  • truncateLocation prop is no longer passed along with "other" props to underlying Text component (fixes issue with react-native-web) - @ericboyangan

1.8.0

5 years ago

New Stuff:

  • Autolink component now extends React.PureComponent instead of React.Component to optimize re-renders

1.7.0

5 years ago

New Stuff:

  • Added "facebook" option for hashtag prop to link hashtags to Facebook
  • Added "soundcloud" option for mention prop to link usernames to SoundCloud (web-only)
  • Added support for stripTrailingSlash option to control whether or not to remove trailing slashes from linked URL text (default: true)

1.6.0

5 years ago

Changes:

  • Default link styling is no longer applied when a linkStyle prop is provided

1.5.1

5 years ago

Bug Fixes:

  • PropTypes definition for phone prop now correctly allows for a string or a boolean - @JosephSmith127

1.5.0

5 years ago

New Stuff:

  • truncateLocation support added! Use the "smart", "end", and "middle" options to control where in the string the truncation will occur.

1.4.0

6 years ago

New Stuff:

  • Added experimental latitude, longitude pair linking to maps application, enabled with the latlng prop
  • Added support for additional matchers not included in Autolinker.js

1.3.1

6 years ago

Bug Fixes:

  • Proptypes.oneOfType definition for url prop now correctly uses an array - @TikiTDO

1.3.0

6 years ago

New Stuff:

  • Text props, such as allowFontScaling, are now passed to link Text components automatically since they don't inherit from the root Text node - @orinoco

1.2.0

6 years ago

New Stuff:

  • url prop has been updated to allow schemeMatches, wwwMatches and tldMatches options. Simply pass an object to enable/disable each of these options. For example: <Autolink text="github.com" url={{ tldMatches: false }} /> will not produce any links since tldMatches is disabled. - @trybeee