mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
BackHandlerStatic returns NativeEventSubscription
This commit is contained in:
2
types/react-native/index.d.ts
vendored
2
types/react-native/index.d.ts
vendored
@@ -6550,7 +6550,7 @@ export interface BackAndroidStatic {
|
||||
*/
|
||||
export interface BackHandlerStatic {
|
||||
exitApp(): void;
|
||||
addEventListener(eventName: BackPressEventName, handler: () => void): void;
|
||||
addEventListener(eventName: BackPressEventName, handler: () => void): NativeEventSubscription;
|
||||
removeEventListener(eventName: BackPressEventName, handler: () => void): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user