From 3d822ec7e66be810e1b76a1cd56fdd5b3d9d7e48 Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Mon, 16 Apr 2018 18:21:28 -0400 Subject: [PATCH] Remove react-native-collapsible (#25011) --- notNeededPackages.json | 6 ++ types/react-native-collapsible/Accordion.d.ts | 64 --------------- types/react-native-collapsible/index.d.ts | 80 ------------------- .../react-native-collapsible-tests.tsx | 62 -------------- types/react-native-collapsible/tsconfig.json | 26 ------ types/react-native-collapsible/tslint.json | 7 -- 6 files changed, 6 insertions(+), 239 deletions(-) delete mode 100644 types/react-native-collapsible/Accordion.d.ts delete mode 100644 types/react-native-collapsible/index.d.ts delete mode 100644 types/react-native-collapsible/react-native-collapsible-tests.tsx delete mode 100644 types/react-native-collapsible/tsconfig.json delete mode 100644 types/react-native-collapsible/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 0f318582a8..2b9e1fcde0 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1152,6 +1152,12 @@ "sourceRepoURL": "https://github.com/react-ga/react-ga", "asOfVersion": "2.3.0" }, + { + "libraryName": "react-native-collapsible", + "typingsPackageName": "react-native-collapsible", + "sourceRepoURL": "https://github.com/oblador/react-native-collapsible", + "asOfVersion": "0.11.0" + }, { "libraryName": "react-native-elements", "typingsPackageName": "react-native-elements", diff --git a/types/react-native-collapsible/Accordion.d.ts b/types/react-native-collapsible/Accordion.d.ts deleted file mode 100644 index d4f3ae0dab..0000000000 --- a/types/react-native-collapsible/Accordion.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import * as React from 'react'; -import { EasingMode } from './index'; - -export interface AccordionProps { - /** - * An array of sections passed to the render methods - */ - sections: any[]; - - /** - * A function that should return a renderable representing the header - */ - renderHeader(content: any, index: number, isActive: boolean): JSX.Element; - - /** - * A function that should return a renderable representing the content - */ - renderContent(content: any, index: number, isActive: boolean): JSX.Element; - - /** - * An optional function that is called when currently active section is changed, index === false when collapsed - */ - onChange?(index: number): void; - - /** - * Set which index in the sections array is initially open. Defaults to none. - */ - initiallyActiveSection?: number; - - /** - * Control which index in the sections array is currently open. Defaults to none. If false, closes all sections. - */ - activeSection?: boolean | number; - - /** - * The color of the underlay that will show through when tapping on headers. - * - * @default black - */ - underlayColor?: string; - - /** - * Alignment of the content when transitioning, can be top, center or bottom - * - * @default top - */ - align?: 'top' | 'center' | 'bottom'; - - /** - * Duration of transition in milliseconds - * - * @default 300 - */ - duration?: number; - - /** - * Function or function name from Easing (or tween-functions if < RN 0.8). Collapsible will try to combine Easing functions for you if you name them like tween-functions. - * - * @default easeOutCubic - */ - easing?: EasingMode | any; -} - -export default class Accordion extends React.Component {} diff --git a/types/react-native-collapsible/index.d.ts b/types/react-native-collapsible/index.d.ts deleted file mode 100644 index bc107f140a..0000000000 --- a/types/react-native-collapsible/index.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -// Type definitions for react-native-collapsible 0.8 -// Project: https://github.com/oblador/react-native-collapsible -// Definitions by: Kyle Roach -// Umidbek Karimov -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 - -import * as React from 'react'; - -export type EasingMode = -'linear' | -'easeInQuad' | -'easeOutQuad' | -'easeInOutQuad' | -'easeInCubic' | -'easeOutCubic' | -'easeInOutCubic' | -'easeInQuart' | -'easeOutQuart' | -'easeInOutQuart' | -'easeInQuint' | -'easeOutQuint' | -'easeInOutQuint' | -'easeInSine' | -'easeOutSine' | -'easeInOutSine' | -'easeInExpo' | -'easeOutExpo' | -'easeInOutExpo' | -'easeInCirc' | -'easeOutCirc' | -'easeInOutCirc' | -'easeInElastic' | -'easeOutElastic' | -'easeInOutElastic' | -'easeInBack' | -'easeOutBack' | -'easeInOutBack' | -'easeInBounce' | -'easeOutBounce' | -'easeInOutBounce'; - -export interface CollapsibleProps { - /** - * Alignment of the content when transitioning, can be top, center or bottom - * - * @default top - */ - align?: 'top' | 'center' | 'bottom'; - - /** - * Whether to show the child components or not - * - * @default true - */ - collapsed?: boolean; - - /** - * Which height should the component collapse to - * - * @default 0 - */ - collapsedHeight?: number; - - /** - * Duration of transition in milliseconds - * - * @default 300 - */ - duration?: number; - - /** - * Function or function name from Easing (or tween-functions if < RN 0.8). Collapsible will try to combine Easing functions for you if you name them like tween-functions - * - * @default easeOutCubic - */ - easing?: EasingMode | any; -} - -export default class Collapsible extends React.Component {} diff --git a/types/react-native-collapsible/react-native-collapsible-tests.tsx b/types/react-native-collapsible/react-native-collapsible-tests.tsx deleted file mode 100644 index 65dd0015b8..0000000000 --- a/types/react-native-collapsible/react-native-collapsible-tests.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import * as React from 'react'; -import { View } from 'react-native'; -import Collapsible from 'react-native-collapsible'; -import Accordion from 'react-native-collapsible/Accordion'; - -class CollapsibleTest extends React.Component { - render() { - return ( - - - - ); - } -} - -class AccordianTest extends React.Component { - _renderHeader() { - return ( - - ); - } - - _renderContent() { - return ( - - ); - } - - render() { - return ( - - ); - } -} - -class AccordionComplexTest extends React.Component { - _renderHeader() { - return ( - - ); - } - - _renderContent() { - return ( - - ); - } - - render() { - return ( - - ); - } -} diff --git a/types/react-native-collapsible/tsconfig.json b/types/react-native-collapsible/tsconfig.json deleted file mode 100644 index 7b0c98aa63..0000000000 --- a/types/react-native-collapsible/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "dom", - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "jsx": "react" - }, - "files": [ - "index.d.ts", - "Accordion.d.ts", - "react-native-collapsible-tests.tsx" - ] -} diff --git a/types/react-native-collapsible/tslint.json b/types/react-native-collapsible/tslint.json deleted file mode 100644 index b1439230db..0000000000 --- a/types/react-native-collapsible/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODO - "no-any-union": false - } -}