Installation
npm install --save @types/react-native-share-extension
Summary
This package contains type definitions for react-native-share-extension (https://github.com/alinz/react-native-share-extension).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-share-extension.
index.d.ts
interface ShareData {
value: string;
type: "text/plain" | "images/*";
}
interface ShareExtension {
close(): void;
data(): Promise<ShareData>;
openURL(uri: string): void;
}
declare const RNShareExtension: ShareExtension;
export default RNShareExtension;
Additional Details
- Last updated: Thu, 21 Dec 2023 19:06:51 GMT
- Dependencies: none
Credits
These definitions were written by .