From b28a42e1046476081ef8bbb9e84bc954370bc14e Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 4 Feb 2022 16:30:17 -0500 Subject: [PATCH] Remove PropTypes --- HTMLView.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/HTMLView.js b/HTMLView.js index 43f8b7e..8bb5d76 100644 --- a/HTMLView.js +++ b/HTMLView.js @@ -1,7 +1,6 @@ import React, {PureComponent} from 'react'; -import PropTypes from 'prop-types'; import htmlToElement from './htmlToElement'; -import {Linking, Platform, StyleSheet, View, ViewPropTypes} from 'react-native'; +import {Linking, Platform, StyleSheet, View} from 'react-native'; const boldStyle = {fontWeight: 'bold'}; const italicStyle = {fontStyle: 'italic'}; @@ -133,26 +132,6 @@ class HtmlView extends PureComponent { } } -HtmlView.propTypes = { - addLineBreaks: PropTypes.bool, - bullet: PropTypes.string, - lineBreak: PropTypes.string, - NodeComponent: PropTypes.func, - nodeComponentProps: PropTypes.object, - onError: PropTypes.func, - onLinkPress: PropTypes.func, - onLinkLongPress: PropTypes.func, - paragraphBreak: PropTypes.string, - renderNode: PropTypes.func, - RootComponent: PropTypes.func, - rootComponentProps: PropTypes.object, - style: ViewPropTypes.style, - stylesheet: PropTypes.object, - TextComponent: PropTypes.func, - textComponentProps: PropTypes.object, - value: PropTypes.string, -}; - HtmlView.defaultProps = { addLineBreaks: true, onLinkPress: url => Linking.openURL(url),