From cec936820621545f4e543dcbfc50f0af92dfa26d Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 13 Aug 2020 10:55:53 -0700 Subject: [PATCH] rn-swipeable-panel ships its own types Or it meant to; the types are in the repo and in package.json, so I expect there will be a patch soon to actually ship them. --- notNeededPackages.json | 8 +- types/rn-swipeable-panel/index.d.ts | 87 ------------------- .../rn-swipeable-panel-tests.tsx | 10 --- types/rn-swipeable-panel/tsconfig.json | 22 ----- types/rn-swipeable-panel/tslint.json | 3 - 5 files changed, 7 insertions(+), 123 deletions(-) delete mode 100644 types/rn-swipeable-panel/index.d.ts delete mode 100644 types/rn-swipeable-panel/rn-swipeable-panel-tests.tsx delete mode 100644 types/rn-swipeable-panel/tsconfig.json delete mode 100644 types/rn-swipeable-panel/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index c5b93336af..7517cb99d9 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -2932,7 +2932,7 @@ "libraryName": "moment-timezone", "typingsPackageName": "moment-timezone", "sourceRepoURL": "https://github.com/moment/moment-timezone", - "asOfVersion": "0.5.30" + "asOfVersion": "0.5.30" }, { "libraryName": "mongodb-memory-server", @@ -4482,6 +4482,12 @@ "sourceRepoURL": "https://github.com/riot/riot", "asOfVersion": "4.1.0" }, + { + "libraryName": "rn-swipeable-panel", + "typingsPackageName": "rn-swipeable-panel", + "sourceRepoURL": "https://github.com/enesozturk/rn-swipeable-panel", + "asOfVersion": "1.2" + }, { "libraryName": "roads", "typingsPackageName": "roads", diff --git a/types/rn-swipeable-panel/index.d.ts b/types/rn-swipeable-panel/index.d.ts deleted file mode 100644 index 61c07f5e5f..0000000000 --- a/types/rn-swipeable-panel/index.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -// Type definitions for rn-swipeable-panel 1.1 -// Project: https://github.com/enesozturk/rn-swipeable-panel -// Definitions by: Enes Öztürk -// Definitions: https://github.com/DefinitelyTyped/types/rn-swipeable-panel - -import * as React from 'react'; - -export interface SwipeablePanelProps extends React.Props { - /** - * Required prop for panels actual state. Set true if you want to open panel - */ - isActive: boolean; - - /** - * Set true if you want to show close button - */ - showCloseButton?: boolean; - - /** - * Set true if you want to make full with panel - */ - fullWidth?: boolean; - - /** - * Set true if you want to disable black background opacity - */ - noBackgroundOpacity?: boolean; - - /** - * Use this prop to override panel style - */ - style?: object; - - /** - * Use this prop to override close button background style - */ - closeRootStyle?: object; - - /** - * Use this prop to override close button icon style - */ - closeIconStyle?: object; - - /** - * Set true if you want to close panel by touching outside - */ - closeOnTouchOutside?: boolean; - - /** - * Set true if you want to let panel open just large mode - */ - onlyLarge?: boolean; - - /** - * Set true if you want to let panel open just small mode - */ - onlySmall?: boolean; - - /** - * Set true if you want to open panel large by default - */ - openLarge?: boolean; - - /** - * Set true if you want to remove gray bar - */ - noBar?: boolean; - - /** - * Use this prop to override bar style - */ - barStyle?: object; - - /** - * Set true if you want to make toucable outside of panel - */ - allowTouchOutside?: boolean; - - // Event Handlers - - /** - * Required prop to keep panel's state sync with your parent components'state. Will be fired when panel is closed. See the example project. - */ - onClose: () => void; -} - -export default class SwipeablePanel extends React.Component {} diff --git a/types/rn-swipeable-panel/rn-swipeable-panel-tests.tsx b/types/rn-swipeable-panel/rn-swipeable-panel-tests.tsx deleted file mode 100644 index 86b8749e69..0000000000 --- a/types/rn-swipeable-panel/rn-swipeable-panel-tests.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import * as React from 'react'; -import SwipeablePanel from 'rn-swipeable-panel'; - -export const App: React.FC = () => { - const [isActive, setIsActive] = React.useState(false); - - const onClosePanel = () => setIsActive(false); - - return ; -}; diff --git a/types/rn-swipeable-panel/tsconfig.json b/types/rn-swipeable-panel/tsconfig.json deleted file mode 100644 index fcf99dd0f1..0000000000 --- a/types/rn-swipeable-panel/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "jsx": "react", - "strictFunctionTypes": true - }, - "files": ["index.d.ts", "rn-swipeable-panel-tests.tsx"] -} - \ No newline at end of file diff --git a/types/rn-swipeable-panel/tslint.json b/types/rn-swipeable-panel/tslint.json deleted file mode 100644 index 10934bbddb..0000000000 --- a/types/rn-swipeable-panel/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ "extends": "dtslint/dt.json" } - - \ No newline at end of file