Added react-native-share-menu (#36960)

Added react native share menu
This commit is contained in:
Haseeb Majid 2019-07-18 00:21:03 +01:00 committed by Andrew Branch
parent 7e7af62444
commit 24a8fc99dc
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// Type definitions for react-native-share-menu 2.2
// Project: https://github.com/meedan/react-native-share-menu#readme
// Definitions by: Haseeb Majid <https://github.com/hmajid2301>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface ShareMenu {
getSharedText(callback: (text: string) => void): void;
clearSharedText(): void;
}
export const ShareMenu: ShareMenu;
export default ShareMenu;

View File

@ -0,0 +1,5 @@
import ShareMenu from 'react-native-share-menu';
ShareMenu.getSharedText((text: string) => {
const message = text;
});

View File

@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"react-native-share-menu-tests.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }