mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 17:22:45 +08:00
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:
committed by
facebook-github-bot-0
parent
af24619592
commit
6edcebef9c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user