mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Merge pull request #12883 from dannycochran/patch-2
update react typings to 0.37
This commit is contained in:
17
react-native/index.d.ts
vendored
17
react-native/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-native 0.34
|
||||
// Type definitions for react-native 0.37
|
||||
// Project: https://github.com/facebook/react-native
|
||||
// Definitions by: Bruno Grieder <https://github.com/bgrieder>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -1922,6 +1922,16 @@ declare module "react" {
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
/**
|
||||
* Passed data from WebView via window.postMessage.
|
||||
*/
|
||||
export interface WebViewMessageEventData {
|
||||
/**
|
||||
* The data sent from a WebView; can only be a string.
|
||||
*/
|
||||
data: string
|
||||
}
|
||||
|
||||
export interface WebViewPropertiesAndroid {
|
||||
|
||||
/**
|
||||
@@ -2080,6 +2090,11 @@ declare module "react" {
|
||||
*/
|
||||
onLoadStart?: (event: NavState) => void
|
||||
|
||||
/**
|
||||
* Invoked when window.postMessage is called from WebView.
|
||||
*/
|
||||
onMessage?: ( event: NativeSyntheticEvent<WebViewMessageEventData> ) => void
|
||||
|
||||
/**
|
||||
* Function that is invoked when the `WebView` loading starts or ends.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user