Skip to content

Commit

Permalink
Adding custom style support for activity text
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Feb 27, 2020
1 parent f8e79b1 commit 97130d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ export default class Activity extends React.Component<Props> {
</Text>,
);
} else {
rendered.push(tokens[i] + ' ');
rendered.push(<Text style={styles.text}>{tokens[i] + ' '}</Text>);
}
}
return <Text>{rendered}</Text>;
return rendered;
};

renderContent = () => {
Expand Down
1 change: 1 addition & 0 deletions src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export const styles = {
url: {
color: '#666',
},
text: {},
}),
button: StyleSheet.create({
container: {
Expand Down

0 comments on commit 97130d8

Please sign in to comment.