Skip to content

Commit 651c96c

Browse files
committed
fix use of deprecated ViewPropTypes api
1 parent b8486fd commit 651c96c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- 0.17.0
2+
- fix use of deprecated ViewPropTypes api
13
- 0.16.0
24
- fixed bold tags not working in recent versions of React Native [#290](https://github.com/jsdf/react-native-htmlview/pull/290)
35
- fixed error thrown when `<li>` elements don't have a parent [#273](https://github.com/jsdf/react-native-htmlview/pull/273)

HTMLView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React, {PureComponent} from 'react';
22
import PropTypes from 'prop-types';
33
import htmlToElement from './htmlToElement';
4-
import {Linking, Platform, StyleSheet, View, ViewPropTypes} from 'react-native';
4+
import {Linking, Platform, StyleSheet, View} from 'react-native';
5+
6+
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
57

68
const boldStyle = {fontWeight: 'bold'};
79
const italicStyle = {fontStyle: 'italic'};

0 commit comments

Comments
 (0)