Skip to content

Commit bafc411

Browse files
author
pawan_m02111
committed
v0.0.19
1 parent cbb58c4 commit bafc411

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function (_Component) {
9696
elements.push(_react["default"].createElement(_reactNative.Text, _extends({}, componentProps, clickHandlerProps, {
9797
key: url + index,
9898
style: [component.props.style, _this.props.linkStyle]
99-
}), text));
99+
}, _this.props.injectViewProps(url)), text));
100100
});
101101

102102
elements.push(component.props.children.substring(_lastIndex, component.props.children.length));
@@ -173,10 +173,14 @@ Hyperlink.propTypes = {
173173
linkStyle: textPropTypes.style,
174174
linkText: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].func]),
175175
onPress: _propTypes["default"].func,
176-
onLongPress: _propTypes["default"].func
176+
onLongPress: _propTypes["default"].func,
177+
injectViewProps: _propTypes["default"].func
177178
};
178179
Hyperlink.defaultProps = {
179-
linkify: linkify
180+
linkify: linkify,
181+
injectViewProps: function injectViewProps(i) {
182+
return {};
183+
}
180184
};
181185

182186
Hyperlink.getDerivedStateFromProps = function (nextProps, prevState) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-hyperlink",
3-
"version": "0.0.18",
3+
"version": "0.0.19",
44
"description": "A <Hyperlink /> component for react-native to make urls, fuzzy links, emails etc clickable",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)