Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions HTMLView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import htmlToElement from './htmlToElement';
import {Linking, Platform, StyleSheet, View, ViewPropTypes} from 'react-native';

const boldStyle = {fontWeight: '500'};
const boldStyle = {fontWeight: 'bold'};
const italicStyle = {fontStyle: 'italic'};
const underlineStyle = {textDecorationLine: 'underline'};
const strikethroughStyle = {textDecorationLine: 'line-through'};
Expand All @@ -20,15 +20,15 @@ const baseStyles = StyleSheet.create({
pre: codeStyle,
code: codeStyle,
a: {
fontWeight: '500',
fontWeight: 'bold',
color: '#007AFF',
},
h1: {fontWeight: '500', fontSize: 36},
h2: {fontWeight: '500', fontSize: 30},
h3: {fontWeight: '500', fontSize: 24},
h4: {fontWeight: '500', fontSize: 18},
h5: {fontWeight: '500', fontSize: 14},
h6: {fontWeight: '500', fontSize: 12},
h1: {fontWeight: 'bold', fontSize: 36},
h2: {fontWeight: 'bold', fontSize: 30},
h3: {fontWeight: 'bold', fontSize: 24},
h4: {fontWeight: 'bold', fontSize: 18},
h5: {fontWeight: 'bold', fontSize: 14},
h6: {fontWeight: 'bold', fontSize: 12},
});

const htmlToElementOptKeys = [
Expand Down