From 7d27169773a6553fb83c66e1088fb06a6989ca73 Mon Sep 17 00:00:00 2001 From: macgregorthomson Date: Mon, 12 Mar 2018 11:36:09 -0400 Subject: [PATCH 1/2] Add support for strike through style on Android --- HTMLView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HTMLView.js b/HTMLView.js index de37cbd..751d59c 100644 --- a/HTMLView.js +++ b/HTMLView.js @@ -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({ @@ -14,6 +15,7 @@ const baseStyles = StyleSheet.create({ i: italicStyle, em: italicStyle, u: underlineStyle, + s: strikethroughStyle, pre: codeStyle, code: codeStyle, a: { From cae1f28a237d8719f0849990bdc61871888f49ef Mon Sep 17 00:00:00 2001 From: macgregorthomson Date: Mon, 12 Mar 2018 16:08:55 -0400 Subject: [PATCH 2/2] Add support for deprecated `strike` tag --- HTMLView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/HTMLView.js b/HTMLView.js index 751d59c..9b3e48f 100644 --- a/HTMLView.js +++ b/HTMLView.js @@ -16,6 +16,7 @@ const baseStyles = StyleSheet.create({ em: italicStyle, u: underlineStyle, s: strikethroughStyle, + strike: strikethroughStyle, pre: codeStyle, code: codeStyle, a: {