react-native-open-map icon indicating copy to clipboard operation
react-native-open-map copied to clipboard

Typescript typings

Open RWOverdijk opened this issue 6 years ago • 1 comments

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;
  }
}

RWOverdijk avatar May 31 '19 11:05 RWOverdijk

Great i'm missing this too.. Why don't you submit a PR with this?

arelstone avatar Aug 16 '19 11:08 arelstone