Skip to content

Commit 4a6b8e3

Browse files
committed
Apply default link styles when no custom styles provided [Closes #34]
1 parent 0f0b205 commit 4a6b8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default class Autolink extends Component {
150150
<Text
151151
{...textProps}
152152
key={index}
153-
style={[styles.link, this.props.linkStyle]}
153+
style={this.props.linkStyle || styles.link}
154154
onPress={() => this.onPress(match)}
155155
onLongPress={() => this.onLongPress(match)}
156156
>

0 commit comments

Comments
 (0)