Skip to content

Typescript typings #3

@RWOverdijk

Description

@RWOverdijk

First off, great job on the library. I've checked out the code and it's pretty neat. It does exactly what I want without adding too much fluff.

The only thing missing for me is typings for typescript, so I took it upon myself to write them for .show().

declare module 'react-native-open-map' {
  function show(options: ShowOptions): any;
  
  export interface ShowOptions {
    latitude: number;
    longitude: number;
    title?: string;
    cancelText?: string;
    actionSheetTitle?: string;
    actionSheetMessage?: string;
  }
}

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions