Skip to content

Conversation

@cbrevik
Copy link
Contributor

@cbrevik cbrevik commented Sep 26, 2016

I'd like to make ReactWebView and ReactWebViewClient protected instead of private, inside the ReactWebViewManager class. The reason being that if you extend the ReactWebViewManager it'll be much easier to override existing logic.

In my specific case I'd like to be able to override shouldOverrideUrlLoading inside ReactWebViewClient and handle custom URL schemes differently. See #10055.

In order to more easily extend ReactWebViewManager logic
@ghost
Copy link

ghost commented Sep 26, 2016

By analyzing the blame information on this pull request, we identified @sathyapriya-31 and @jvassbo to be potential reviewers.

@ghost
Copy link

ghost commented Sep 26, 2016

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 26, 2016
@ghost
Copy link

ghost commented Sep 26, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot
Copy link
Contributor

It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @jacobp100 as a potential reviewer. Could you take a look please or cc someone with more context?

@cbrevik
Copy link
Contributor Author

cbrevik commented Oct 28, 2016

CC @satya164

@facebook-github-bot
Copy link
Contributor

@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@cbrevik cbrevik deleted the patch-1 branch November 15, 2016 13:26
DanielMSchmidt pushed a commit to DanielMSchmidt/react-native that referenced this pull request Jan 4, 2017
Summary:
I'd like to make `ReactWebView` and `ReactWebViewClient` `protected` instead of `private`, inside the `ReactWebViewManager` class. The reason being that if you extend the `ReactWebViewManager` it'll be much easier to override existing logic.

In my specific case I'd like to be able to override [shouldOverrideUrlLoading](https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java#L120) inside `ReactWebViewClient` and handle custom URL schemes differently. See facebook#10055.
Closes facebook#10105

Differential Revision: D4168359

Pulled By: hramos

fbshipit-source-id: ff6cbcf1d56536f0db0d2eea937de2cc065a09f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants