Releases: joshswan/react-native-autolink
4.2.0
4.1.0
4.0.0
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 - importLatLngMatcher
and supply to matchers prop instead - The webFallback prop has been removed and service links for hashtags/mentions
default to web URLs. Use theuseNativeSchemes
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
4.0.0-rc.1
v4.0.0-rc.1 Release 4.0.0-rc.1
4.0.0-rc.0
v4.0.0-rc.0 Release 4.0.0-rc.0
3.0.0
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
⚠ BREAKING CHANGES
- Non-Autolink props are no longer passed to links. Only styles supplied to
linkStyle
and props supplied tolinkProps
are used when rendering links. You are still free to
userenderLink
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
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 themention
prop
1.9.2
Bug Fixes:
- Improve Typescript typings - @ArnaudBarre
1.9.1
Bug Fixes:
- Add React to Typescript typings - @JonnyBurger