mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update definition for react-native : AppState
This commit is contained in:
Vendored
+7
-4
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-native 0.14
|
||||
// Type definitions for react-native 0.19
|
||||
// Project: https://github.com/facebook/react-native
|
||||
// Definitions by: Bruno Grieder <https://github.com/bgrieder>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -2853,7 +2853,7 @@ declare namespace __React {
|
||||
*
|
||||
* @see https://facebook.github.io/react-native/docs/appstateios.html#content
|
||||
*/
|
||||
export interface AppStateIOSStatic {
|
||||
export interface AppStateStatic {
|
||||
currentState: string
|
||||
addEventListener( type: string, listener: ( state: string ) => void ): void
|
||||
removeEventListener( type: string, listener: ( state: string ) => void ): void
|
||||
@@ -3378,8 +3378,11 @@ declare namespace __React {
|
||||
export var AlertIOS: AlertIOSStatic
|
||||
export type AlertIOS = AlertIOSStatic
|
||||
|
||||
export var AppStateIOS: AppStateIOSStatic
|
||||
export type AppStateIOS = AppStateIOSStatic
|
||||
export var AppState : AppStateStatic;
|
||||
export type AppState = AppStateStatic;
|
||||
|
||||
export var AppStateIOS: AppStateStatic
|
||||
export type AppStateIOS = AppStateStatic
|
||||
|
||||
export var AsyncStorage: AsyncStorageStatic
|
||||
export type AsyncStorage = AsyncStorageStatic
|
||||
|
||||
Reference in New Issue
Block a user