Stop using platform-specific names for props

Summary:
Follows up on [this comment](https://github.com/facebook/react-native/pull/5065#issuecomment-168353782) by nicklockwood in #5065.

Rely on using the platform annotation and keep the API / naming less redundant.
Closes https://github.com/facebook/react-native/pull/5081

Reviewed By: svcscm

Differential Revision: D2803143

Pulled By: nicklockwood

fb-gh-sync-id: 9bdf028f5022ef46fcb63aa6c3fc931fdcc46f2b
This commit is contained in:
odino
2016-01-05 10:31:42 -08:00
committed by facebook-github-bot-0
parent af24619592
commit 6edcebef9c
4 changed files with 30 additions and 10 deletions

View File

@@ -251,12 +251,12 @@ public class ReactWebViewManager extends SimpleViewManager<WebView> {
return webView;
}
@ReactProp(name = "javaScriptEnabledAndroid")
@ReactProp(name = "javaScriptEnabled")
public void setJavaScriptEnabled(WebView view, boolean enabled) {
view.getSettings().setJavaScriptEnabled(enabled);
}
@ReactProp(name = "domStorageEnabledAndroid")
@ReactProp(name = "domStorageEnabled")
public void setDomStorageEnabled(WebView view, boolean enabled) {
view.getSettings().setDomStorageEnabled(enabled);
}