mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Added userAgent prop type in docs for webview
Summary: userAgent as a prop type is available in WebView for android but is not documented. This PR fixes it. **TestPlan** : Not required as this just adds an entry in the documentation  Closes https://github.com/facebook/react-native/pull/8200 Differential Revision: D3454625 fbshipit-source-id: 260087044f78a1339cf7ec8760e92cd9fbdb5111
This commit is contained in:
committed by
Facebook Github Bot
parent
12754839a1
commit
d929f1ccef
@@ -212,6 +212,13 @@ var WebView = React.createClass({
|
||||
*/
|
||||
injectedJavaScript: PropTypes.string,
|
||||
|
||||
/**
|
||||
* Sets the user-agent for this WebView. The user-agent can also be set in native using
|
||||
* WebViewConfig. This prop will overwrite that config.
|
||||
* @platform android
|
||||
*/
|
||||
userAgent: PropTypes.string,
|
||||
|
||||
/**
|
||||
* Sets whether the webpage scales to fit the view and the user can change the scale.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user