mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Added React Native Share Extension * Fixed Linting Issues Fixed linting issues, added tests. * Fixed other linting issues Data returns a promise. * Removed Public from state Removed public from state.
19 lines
529 B
TypeScript
19 lines
529 B
TypeScript
// Type definitions for react-native-share-extension 2.0
|
|
// Project: https://github.com/alinz/react-native-share-extension
|
|
// Definitions by: Haseeb Majid <https://github.com/hmajid230>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
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;
|