text: declare module 'react-router-native' {
    declare export type GetUserConfirmation =
      (message: string, callback: (confirmed: boolean) => void) => void;
  
    declare type LocationShape = {
      pathname?: string,
      search?: string,
      hash?: string,
      state?: any,
    };
  
    declare export class NativeRouter extends React$Component<{
      getUserConfirmation?: GetUserConfirmation,
      keyLength?: number,
      children?: React$Node,
    }> {}
  
    declare export class Link extends React$Component<{
      to: string | LocationShape,
      replace?: boolean,
      children?: React$Node,
    }> {}
  
    declare export class DeepLinking extends React$Component<{ children?: React$Node }> {}
  
    declare export class AndroidBackButton extends React$Component<{ children?: React$Node }> {}
  }
  