Skip to content

Commit 13bca29

Browse files
author
Kashish Grover
committed
fix: fix link style issue
1 parent bf3dae3 commit 13bca29

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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-see-more-inline",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Show a \"read more\", \"see more\", \"read less\", \"see less\" inline with your text in React Native",
55
"main": "index.js",
66
"repository": "git@github.com:kashishgrover/react-native-see-more-inline.git",

src/SeeMore/SeeMore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class SeeMore extends React.Component {
110110
linkPressedColor,
111111
seeMoreText,
112112
seeLessText,
113+
style,
113114
} = this.props;
114115
const isTruncable = truncationIndex < text.length;
115116

@@ -121,7 +122,7 @@ class SeeMore extends React.Component {
121122
<Text
122123
{...this.props}
123124
{...this.panResponder.panHandlers}
124-
style={{ color: isLinkPressed ? linkPressedColor : linkColor }}
125+
style={[style, { color: isLinkPressed ? linkPressedColor : linkColor }]}
125126
>
126127
{isShowingMore ? null : <Text {...this.props}>...</Text>}
127128
{isShowingMore ? ` ${seeLessText}` : ` ${seeMoreText}`}

0 commit comments

Comments
 (0)