Skip to content

Releases: joshswan/react-native-autolink

4.2.0

07 Oct 18:15
89e1c4c
Compare
Choose a tag to compare

4.2.0 (2023-10-07)

Features

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

4.1.0

13 Mar 22:41
718c134
Compare
Choose a tag to compare

4.1.0 (2023-03-13)

Features

  • export AutolinkComponentProps type (#69) (a4769ea)

4.0.0

13 Apr 00:35
4100d2a
Compare
Choose a tag to compare

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

4.0.0-rc.1

04 Apr 19:17
0f87778
Compare
Choose a tag to compare
4.0.0-rc.1 Pre-release
Pre-release
v4.0.0-rc.1

Release 4.0.0-rc.1

4.0.0-rc.0

29 Mar 02:07
158ad0d
Compare
Choose a tag to compare
4.0.0-rc.0 Pre-release
Pre-release
v4.0.0-rc.0

Release 4.0.0-rc.0

3.0.0

20 Mar 21:25
7b6c907
Compare
Choose a tag to compare

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.

2.0.0

09 Feb 04:09
bd94f16
Compare
Choose a tag to compare

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

07 Jan 19:38
1.9.2
4aa0bfd
Compare
Choose a tag to compare

Bug Fixes:

1.9.1

06 Dec 19:33
1.9.1
c6378ab
Compare
Choose a tag to compare

Bug Fixes:

1.9.0

22 Nov 04:24
1.9.0
51ab658
Compare
Choose a tag to compare

New Stuff:

  • Added TypeScript typings - @mo22