Skip to content

Commit e9ae3de

Browse files
committed
v0.0.14
1 parent 4d21bf6 commit e9ae3de

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dist/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,19 @@ var Hyperlink = function (_Component) {
114114
_lastIndex = lastIndex;
115115
if (_this2.props.linkText) text = typeof _this2.props.linkText === 'function' ? _this2.props.linkText(url) : _this2.props.linkText;
116116

117+
var clickHandlerProps = {};
117118
if (OS !== 'web') {
118-
componentProps.onLongPress = _this2.props.onLongPress ? function () {
119+
clickHandlerProps.onLongPress = _this2.props.onLongPress ? function () {
119120
return _this2.props.onLongPress(url, text);
120121
} : undefined;
121122
}
122-
componentProps.onPress = _this2.props.onPress ? function () {
123+
clickHandlerProps.onPress = _this2.props.onPress ? function () {
123124
return _this2.props.onPress(url, text);
124125
} : undefined;
125126

126127
elements.push(_react2.default.createElement(
127128
_reactNative.Text,
128-
_extends({}, componentProps, {
129+
_extends({}, componentProps, clickHandlerProps, {
129130
key: url + index,
130131
style: [component.props.style, _this2.props.linkStyle]
131132
}),

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.13",
3+
"version": "0.0.14",
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)