Skip to content

update custom webview example to use RNC webview - #3069

Merged
Simek merged 3 commits into
react:mainfrom
jazibjafri:java-rnc-webview-example
Apr 12, 2022
Merged

update custom webview example to use RNC webview#3069
Simek merged 3 commits into
react:mainfrom
jazibjafri:java-rnc-webview-example

Conversation

@jazibjafri

@jazibjafrijazibjafri commented Apr 11, 2022

Copy link
Copy Markdown
Contributor

This PR updates java code in custom-webview example to use react-native-community/react-native-webview instead of deprecated WebView

Related to this discussion

@jazibjafri

Copy link
Copy Markdown
ContributorAuthor

@netlify

netlifyBot commented Apr 11, 2022

Copy link
Copy Markdown

Deploy Preview for react-native ready!

NameLink
🔨 Latest commit211109d
🔍 Latest deploy loghttps://app.netlify.com/sites/react-native/deploys/62552af406c0270008e3cf8d
😎 Deploy Previewhttps://deploy-preview-3069--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@cortinicocortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just adding a note to clarify that the external lib is actually 1st party recommended.

@@ -9,28 +9,30 @@ Before you do this, you should be familiar with the concepts in [native UI compo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a note like:

:::info
The React Native WebView component has been moved under `react-native-community/react-native-webview` as part of the [lean core effort](https://github.com/facebook/react-native/issues/23313).
That is the recommended way to use WebView in React Native as of today. You should not use the [WebView](https://reactnative.dev/docs/0.61/webview) component as that was deprecated and removed from React Native. :::

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment threaddocs/custom-webview-android.md Outdated
Comment threaddocs/custom-webview-android.md Outdated

@SimekSimek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the updates! Let's ship this improvement! 🚀

@Simek
Simek merged commit 7606f42 into react:mainApr 12, 2022
@jazibjafri
jazibjafri deleted the java-rnc-webview-example branch April 12, 2022 08:43
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jazibjafri@Simek@cortinico@facebook-github-bot