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
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ 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 ([email protected]), twitter 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 ([email protected]), mentions/handles (@twitter), and hashtags (#exciting)"
24
24
hashtag="instagram"
25
-
twitter />
25
+
mention="twitter"/>
26
26
);
27
27
}
28
28
}
@@ -45,6 +45,7 @@ class MyComponent extends Component {
45
45
|`renderLink`|`function`|| Custom render function for rendering link nodes. Arguments: `text:String`, `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.*|
46
46
|`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. |
47
47
|`truncateChars`|`String`|`..`| Characters to replace truncated url segments with, if enabled. |
48
+
|`webFallback`|`Boolean`| Android: `true` iOS: `false`| Link to web versions of Instagram/Twitter for hashtag and mention links when users don't have the respective app installed. **Requires `LSApplicationQueriesSchemes` on iOS. See: https://facebook.github.io/react-native/docs/linking.html|
48
49
49
50
**Any other props will be passed through to the main Text node (e.g. style, numberOfLines).**
0 commit comments