Skip to content

Commit

Permalink
v0.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
pawan_m02111 committed Dec 24, 2019
1 parent cbb58c4 commit bafc411
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function (_Component) {
elements.push(_react["default"].createElement(_reactNative.Text, _extends({}, componentProps, clickHandlerProps, {
key: url + index,
style: [component.props.style, _this.props.linkStyle]
}), text));
}, _this.props.injectViewProps(url)), text));
});

elements.push(component.props.children.substring(_lastIndex, component.props.children.length));
Expand Down Expand Up @@ -173,10 +173,14 @@ Hyperlink.propTypes = {
linkStyle: textPropTypes.style,
linkText: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].func]),
onPress: _propTypes["default"].func,
onLongPress: _propTypes["default"].func
onLongPress: _propTypes["default"].func,
injectViewProps: _propTypes["default"].func
};
Hyperlink.defaultProps = {
linkify: linkify
linkify: linkify,
injectViewProps: function injectViewProps(i) {
return {};
}
};

Hyperlink.getDerivedStateFromProps = function (nextProps, prevState) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-hyperlink",
"version": "0.0.18",
"version": "0.0.19",
"description": "A <Hyperlink /> component for react-native to make urls, fuzzy links, emails etc clickable",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit bafc411

Please sign in to comment.