<WebView>: Add propType for injectJavaScript
Summary:
Small fix. Adds a proptype for the injectJavaScript function, added in da9a712a9e
.
Closes https://github.com/facebook/react-native/pull/12665
Differential Revision: D4645803
Pulled By: hramos
fbshipit-source-id: 863e5bf82b853914ac08f9f5b2c141d35882afc7
This commit is contained in:
parent
77b8c09727
commit
13b4c2d77b
|
@ -160,6 +160,12 @@ class WebView extends React.Component {
|
||||||
* @platform android
|
* @platform android
|
||||||
*/
|
*/
|
||||||
allowUniversalAccessFromFileURLs: PropTypes.bool,
|
allowUniversalAccessFromFileURLs: PropTypes.bool,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function that accepts a string that will be passed to the WebView and
|
||||||
|
* executed immediately as JavaScript.
|
||||||
|
*/
|
||||||
|
injectJavaScript: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
|
|
@ -334,6 +334,12 @@ class WebView extends React.Component {
|
||||||
* to tap them before they start playing. The default value is `true`.
|
* to tap them before they start playing. The default value is `true`.
|
||||||
*/
|
*/
|
||||||
mediaPlaybackRequiresUserAction: PropTypes.bool,
|
mediaPlaybackRequiresUserAction: PropTypes.bool,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function that accepts a string that will be passed to the WebView and
|
||||||
|
* executed immediately as JavaScript.
|
||||||
|
*/
|
||||||
|
injectJavaScript: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
|
|
Loading…
Reference in New Issue