chore(docs): Update Custom-Android.md (#1787)

Updates ReactWebViewClient to RNCWebViewClient
This commit is contained in:
Kevin Tuazon 2021-01-21 01:45:45 +08:00 committed by GitHub
parent 808762f8bb
commit 43443d8ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Before you do this, you should be familiar with the concepts in [native UI compo
## Native Code
To get started, you'll need to create a subclass of `RNCWebViewManager`, `RNCWebView`, and `ReactWebViewClient`. In your view manager, you'll then need to override:
To get started, you'll need to create a subclass of `RNCWebViewManager`, `RNCWebView`, and `RNCWebViewClient`. In your view manager, you'll then need to override:
- `createReactWebViewInstance`
- `getName`
@ -16,7 +16,7 @@ public class CustomWebViewManager extends RNCWebViewManager {
/* This name must match what we're referring to in JS */
protected static final String REACT_CLASS = "RCTCustomWebView";
protected static class CustomWebViewClient extends ReactWebViewClient { }
protected static class CustomWebViewClient extends RNCWebViewClient { }
protected static class CustomWebView extends RNCWebView {
public CustomWebView(ThemedReactContext reactContext) {