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

UIWebViews discontinued by ios #151

Closed
youstronsic opened this issue Dec 2, 2019 · 9 comments
Closed

UIWebViews discontinued by ios #151

youstronsic opened this issue Dec 2, 2019 · 9 comments

Comments

@youstronsic
Copy link

youstronsic commented Dec 2, 2019

This library is using the depreciated UIWebViews , i'm getting following warning while uploading to ios store

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs .

I request the community to update this library with the new react native webview i.e wkWebView.
If anyone know how to shift from UiWebView to WkWebView then please comment.

@stepupithub
Copy link

hey there ???? i'm also using this library and getting that mail too @youstronsic

@youstronsic
Copy link
Author

@stepupithub
check the following link it has two files, replace these files with your project's file (node_modules/react-native-html-to-pdf/ios/RNHTMLtoPDF/)
https://github.com/christopherdro/react-native-html-to-pdf/tree/master/ios/RNHTMLtoPDF

@mohankoppuravuri
Copy link

Can you please make a release into npm registry. so that with 'npm ci' command we can get this code.

@maitcc
Copy link

maitcc commented Feb 11, 2020

please :(

@vadavallipavan
Copy link

Can you please advise when can this updated be pushed to NPM registry . Deadline has passed and Apple is rejecting the updates

@mohankoppuravuri
Copy link

Can you please advise when can this updated be pushed to NPM registry . Deadline has passed and Apple is rejecting the updates

Use this module as the local module.

@vadavallipavan
Copy link

please :(

As suggested in another thread ,used the below option, worked fine for me..
In your package.json, replace the 0.8.0 with the GitHub address like this:
"react-native-html-to-pdf": "https://github.com/christopherdro/react-native-html-to-pdf.git",

@mcvictormurillo
Copy link

Hello developers, I have created a guide to solve the problem https://www.notion.so/iOS-Deprecated-API-UIWebView-623e2131bf014871849b300f2296c99a

@yousef-hassani
Copy link

yousef-hassani commented Dec 15, 2020

Hey man,

thanks. Found an bug in RNHTMLtoPDF.m file. Its in line 177, it should be:
dispatch_async(dispatch_get_main_queue(), ^{
[self->_webView loadHTMLString:self->_html baseURL:baseURL];
});

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

7 participants