diff --git a/notNeededPackages.json b/notNeededPackages.json index b8a7889159..c7071193e7 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3516,6 +3516,12 @@ "sourceRepoURL": "https://github.com/react-native-training/react-native-elements", "asOfVersion": "0.18.0" }, + { + "libraryName": "react-native-fabric", + "typingsPackageName": "react-native-fabric", + "sourceRepoURL": "https://github.com/corymsmith/react-native-fabric", + "asOfVersion": "0.5.2" + }, { "libraryName": "react-native-goby", "typingsPackageName": "react-native-goby", diff --git a/types/react-native-fabric/index.d.ts b/types/react-native-fabric/index.d.ts deleted file mode 100644 index 46f859bc17..0000000000 --- a/types/react-native-fabric/index.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -// Type definitions for react-native-fabric 0.5 -// Project: https://github.com/corymsmith/react-native-fabric -// Definitions by: Joseph Roque -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export interface CustomAttributes { - [key: string]: any; -} - -export namespace Answers { - function logCustom(eventName: string, customAttributes?: CustomAttributes): void; - function logInvite(method: string, customAttributes?: CustomAttributes): void; - function logLevelStart(levelName: string, customAttributes?: CustomAttributes): void; - function logLevelEnd(levelName: string, customAttributes?: CustomAttributes): void; - function logLogin(method: string, success: boolean, customAttributes?: CustomAttributes): void; - function logSearch(query: string, customAttributes?: CustomAttributes): void; - function logSignUp(method: string, success: boolean, customAttributes?: CustomAttributes): void; - function logShare( - method: string, - contentName: string, - contentType: string, - contentId: string, - customAttributes?: CustomAttributes): void; - function logStartCheckout( - totalPrice: number, - count: number, - currency: string, - customAttributes?: CustomAttributes): void; - function logAddToCart( - itemPrice: number, - currency: string, - itemName: string, - itemType: string, - itemId: string, - customAttributes?: CustomAttributes): void; - function logPurchase( - itemPrice: number, - currency: string, - success: boolean, - itemName: string, - itemType: string, - itemId: string, - customAttributes?: CustomAttributes): void; - function logContentView( - contentName: string, - contentType: string, - contentId: string, - customAttributes?: CustomAttributes): void; - function logRating( - rating: number, - contentId: string, - contentType: string, - contentName: string, - customAttributes?: CustomAttributes): void; -} - -export namespace Crashlytics { - function crash(): void; - function throwException(): void; - function recordError(error: any): void; - function logException(value: string): void; - function log(message: string): void; - function setUserEmail(email: string): void; - function setUserIdentifier(id: string): void; - function setUserName(userName: string): void; - function setBool(key: string, value: boolean): void; - function setNumber(key: string, value: number): void; - function setString(key: string, value: string): void; - function recordCustomExceptionName(name: string, reason: string, stack?: any[]): void; -} diff --git a/types/react-native-fabric/react-native-fabric-tests.ts b/types/react-native-fabric/react-native-fabric-tests.ts deleted file mode 100644 index 1f7d2c7b2a..0000000000 --- a/types/react-native-fabric/react-native-fabric-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Answers, Crashlytics } from 'react-native-fabric'; - -Answers.logSearch('query'); -Answers.logCustom('event', { customKey: 0 }); - -Crashlytics.crash(); -Crashlytics.setUserName('name'); diff --git a/types/react-native-fabric/tsconfig.json b/types/react-native-fabric/tsconfig.json deleted file mode 100644 index f3dcb77b3d..0000000000 --- a/types/react-native-fabric/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "noUnusedParameters": true, - "noUnusedLocals": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "react-native-fabric-tests.ts" - ] -} \ No newline at end of file diff --git a/types/react-native-fabric/tslint.json b/types/react-native-fabric/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/react-native-fabric/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }