Skip to content

Commit

Permalink
Merge pull request jsdf#210 from macgregorthomson/master
Browse files Browse the repository at this point in the history
Add support for strikethrough text style
  • Loading branch information
isilher authored May 9, 2018
2 parents c808625 + cae1f28 commit 5766e21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HTMLView.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {Linking, Platform, StyleSheet, View, ViewPropTypes} from 'react-native';
const boldStyle = {fontWeight: '500'};
const italicStyle = {fontStyle: 'italic'};
const underlineStyle = {textDecorationLine: 'underline'};
const strikethroughStyle = {textDecorationLine: 'line-through'};
const codeStyle = {fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace'};

const baseStyles = StyleSheet.create({
Expand All @@ -14,6 +15,8 @@ const baseStyles = StyleSheet.create({
i: italicStyle,
em: italicStyle,
u: underlineStyle,
s: strikethroughStyle,
strike: strikethroughStyle,
pre: codeStyle,
code: codeStyle,
a: {
Expand Down

0 comments on commit 5766e21

Please sign in to comment.