React Native Autolink Versions Save

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

v4.2.0

7 months ago

4.2.0 (2023-10-07)

Features

  • custom matchers support new renderLink option for increased customization (af9cae1)

v4.1.0

1 year ago

4.1.0 (2023-03-13)

Features

  • export AutolinkComponentProps type (#69) (a4769ea)

v4.0.0

3 years ago

4.0.0 (2021-04-13)

Big update and huge thanks to @lafiosca for the awesome PR with custom matcher support. There are a few breaking changes that were in the works already for v4 (see below), but migration should be fairly simple. And once you're updated, the new matchers prop with custom regexes, onPress handers, styling and more is a game-changer!

⚠ BREAKING CHANGES

  • Link types are all disabled by default - pass email, hashtag, etc. props to enable.
  • Truncation is also disabled by default - use truncate={32} to enable previous behavior
  • Prop latlng removed - import LatLngMatcher and supply to matchers prop instead
  • The webFallback prop has been removed and service links for hashtags/mentions default to web URLs. Use the useNativeSchemes to link directly to apps instead or use onPress/onLongPress/matchers to customize behavior.

Features

  • user-specified custom link pattern handling (#54) (3f91a09)
  • add LatLng and international phone custom matchers (d229141), closes #25
  • default to web URLs for hashtag/mention links and remove webFallback prop (b8b4fa8)

Code Refactoring

  • convert Autolink to functional component with hooks and export utils (c94ac87), closes #49

v4.0.0-rc.1

3 years ago

v4.0.0-rc.0

3 years ago

v3.0.0

4 years ago

3.0.0 (2020-03-20)

Customization of the container component is now supported via the component prop. By default, the container is still a Text component, but you can override with a View or a custom component for more flexibility.

Additionally, the new linkProps, textProps, and renderText provide allow you to completely customize Autolink's behavior to your specific needs.

Features

  • allow custom container component and more customization (b22f4e7), closes #48

⚠ BREAKING CHANGES

  • Non-Autolink props are no longer passed to links. Only styles supplied to linkStyle and props supplied to linkProps are used when rendering links. You are still free to use renderLink to fully customize link rendering. This is unlikely to cause issues for anyone, but could affect some apps visually, hence the major version bump.

v2.0.0

4 years ago

2.0.0 (2020-02-09)

🎉 The library has been rewritten in TypeScript to make development easier and to keep the much-requested typings in sync automatically. Also, the test have been simplified using Jest snapshots, which also gives you an opportunity to see the effects of various configuration prop settings.

⚠ BREAKING CHANGES

  • deprecated twitter prop no longer supported - please use the mention prop

1.9.2

4 years ago

Bug Fixes:

  • Improve Typescript typings - @ArnaudBarre

1.9.1

4 years ago

Bug Fixes:

  • Add React to Typescript typings - @JonnyBurger

1.9.0

4 years ago

New Stuff:

  • Added TypeScript typings - @mo22