Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewPropTypes will be removed from 'react-native' #358

Open
Zeeshan404 opened this issue May 26, 2023 · 2 comments
Open

ViewPropTypes will be removed from 'react-native' #358

Zeeshan404 opened this issue May 26, 2023 · 2 comments

Comments

@Zeeshan404
Copy link

Zeeshan404 commented May 26, 2023

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Here is the diff that solved my problem:

node_modules/react-native-htmlview/HTMLView.js
 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';
+import { ViewPropTypes } from 'deprecated-react-native-prop-types'
 
 const boldStyle = {fontWeight: 'bold'};
 const italicStyle = {fontStyle: 'italic'};
@hfarhanahmed
Copy link

@Zeeshan404 This Library is not updated for years. I forked this and resolved the issue myself and used it.

@nobady90
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Here is the diff that solved my problem:

node_modules/react-native-htmlview/HTMLView.js
 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';
+import { ViewPropTypes } from 'deprecated-react-native-prop-types'
 
 const boldStyle = {fontWeight: 'bold'};
 const italicStyle = {fontStyle: 'italic'};

a quick solution could be to use the patch-package after modifying the part reported by @Zeeshan404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants