5.0.5 • Published 6 months ago

@types/react-native-share-menu v5.0.5

Weekly downloads
183
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-native-share-menu

Summary

This package contains type definitions for react-native-share-menu (https://github.com/meedan/react-native-share-menu#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-share-menu.

index.d.ts

// Type definitions for react-native-share-menu 5.0
// Project: https://github.com/meedan/react-native-share-menu#readme
// Definitions by: Haseeb Majid <https://github.com/hmajid2301>
//                 Philippe Beaudoin <https://github.com/PhilBeaudoin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7

export interface ShareData {
    mimeType: string;
    data: string | string[];
    extraData?: object | undefined;
}

export type ShareCallback = (share?: ShareData) => void;

export interface ShareListener {
    remove(): void;
}

interface ShareMenu {
    getSharedText(callback: ShareCallback): void;
    getInitialShare(callback: ShareCallback): void;
    addNewShareListener(callback: ShareCallback): ShareListener;
    clearSharedText(): void;
}

interface ShareMenuReactView {
    dismissExtension(error?: string): void;
    openApp(): void;
    continueInApp(extraData?: object): void;
    data(): Promise<{mimeType: string, data: string}>;
}

export const ShareMenuReactView: ShareMenuReactView;
declare const ShareMenu: ShareMenu;
export default ShareMenu;

Additional Details

  • Last updated: Tue, 21 Sep 2021 19:02:16 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Haseeb Majid, and Philippe Beaudoin.

5.0.5

6 months ago

5.0.4

7 months ago

5.0.3

8 months ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

2.2.0

5 years ago