Skip to content

Commit

Permalink
fix: add hook TS typing
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Mar 30, 2020
1 parent a5e2849 commit 2f4915e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
declare module 'react-navigation-backhandler' {
import { Component } from 'react';
declare module "react-navigation-backhandler" {
import { Component } from "react";

export interface AndroidBackHandlerProperties {
onBackPress: () => boolean;
}

export class AndroidBackHandler extends Component<AndroidBackHandlerProperties> {}
export class AndroidBackHandler extends Component<
AndroidBackHandlerProperties
> {}

export function useAndroidBackHandler(onBackPress: () => boolean);
}

0 comments on commit 2f4915e

Please sign in to comment.