mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-27 22:24:38 +08:00
Default javaScriptEnabled to true
Summary:public Default javaScriptEnabled to true on Android WebView Also remove an old (about 6 weeks old) warning about a back compat supported property Reviewed By: nicklockwood Differential Revision: D2939482 fb-gh-sync-id: 2d476c3365f657da27ea370a033b23154750c2ea shipit-source-id: 2d476c3365f657da27ea370a033b23154750c2ea
This commit is contained in:
committed by
facebook-github-bot-3
parent
011dc8904f
commit
d0f1466cdd
@@ -285,16 +285,6 @@ var WebView = React.createClass({
|
||||
RCTWebViewManager.startLoadWithResult(!!shouldStart, event.nativeEvent.lockIdentifier);
|
||||
});
|
||||
|
||||
var {javaScriptEnabled, domStorageEnabled} = this.props;
|
||||
if (this.props.javaScriptEnabledAndroid) {
|
||||
console.warn('javaScriptEnabledAndroid is deprecated. Use javaScriptEnabled instead');
|
||||
javaScriptEnabled = this.props.javaScriptEnabledAndroid;
|
||||
}
|
||||
if (this.props.domStorageEnabledAndroid) {
|
||||
console.warn('domStorageEnabledAndroid is deprecated. Use domStorageEnabled instead');
|
||||
domStorageEnabled = this.props.domStorageEnabledAndroid;
|
||||
}
|
||||
|
||||
var decelerationRate = processDecelerationRate(this.props.decelerationRate);
|
||||
|
||||
var source = this.props.source || {};
|
||||
|
||||
Reference in New Issue
Block a user