You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ class MyComponent extends Component {
20
20
render() {
21
21
return (
22
22
<Autolink
23
-
text="This is the string to parse for urls (https://github.com/joshswan/react-native-autolink), phone numbers (415-555-5555), emails (josh@sportifik.com), mentions/handles (@twitter), and hashtags (#exciting)"
23
+
text="This is the string to parse for urls (https://github.com/joshswan/react-native-autolink), phone numbers (415-555-5555), emails (josh@example.com), mentions/handles (@twitter), and hashtags (#exciting)"
24
24
hashtag="instagram"
25
25
mention="twitter"/>
26
26
);
@@ -41,8 +41,9 @@ class MyComponent extends Component {
|`stripPrefix`|`Boolean`|`true`| Enable stripping of protocol from link text (`https://url` -> `url`). |
43
43
|`linkStyle`|`TextStyle`|| Custom styling to apply to Text nodes of links. |
44
-
|`onPress`|`function`|| Custom function handler for link press events. Arguments: `link:String`, `match:Object`. *See [Autolinker.js match object](http://gregjacobs.github.io/Autolinker.js/docs/#!/api/Autolinker.match.Match) for more information about the match object.*|
45
-
|`renderLink`|`function`|| Custom render function for rendering link nodes. Arguments: `text:String`, `match:Object`, `index:Number`. *See [Autolinker.js match object](http://gregjacobs.github.io/Autolinker.js/docs/#!/api/Autolinker.match.Match) for more information about the match object.*|
44
+
|`onPress`|`function`|| Custom function handler for link press events. Arguments: `url:String`, [`match:Object`][match-url]. |
45
+
|`onLongPress`|`function`|| Function handler for long press events. Arguments: `url:String`, [`match:Object`][match-url]|
46
+
|`renderLink`|`function`|| Custom render function for rendering link nodes. Arguments: `text:String`, [`match:Object`][match-url], `index:Number`. |
46
47
|`showAlert`|`Boolean`|`false`| Displays an alert before leaving the app to help with accidental clicks. Possible values: `true`, `false`|
47
48
|`truncate`|`Number`|`32`| Truncate long link text for display (e.g. `https://www.google.com/../something.html`). Possible values: `0` to disable, `1+` to truncate to that maximum length. |
48
49
|`truncateChars`|`String`|`..`| Characters to replace truncated url segments with, if enabled. |
@@ -58,3 +59,4 @@ class MyComponent extends Component {
0 commit comments