Remove types for react-native-responsive-dimensions (#43564)

This commit is contained in:
Steven Conaway
2020-04-02 09:48:13 -07:00
committed by GitHub
parent 52100395d0
commit a0d3435f3c
5 changed files with 6 additions and 56 deletions
+6
View File
@@ -4038,6 +4038,12 @@
"sourceRepoURL": "https://github.com/yonahforst/react-native-permissions",
"asOfVersion": "2.0.0"
},
{
"libraryName": "react-native-responsive-dimensions",
"typingsPackageName": "react-native-responsive-dimensions",
"sourceRepoURL": "https://github.com/DaniAkash/react-native-responsive-dimensions",
"asOfVersion": "3.1.0"
},
{
"libraryName": "react-native-safe-area",
"typingsPackageName": "react-native-safe-area",
-13
View File
@@ -1,13 +0,0 @@
// Type definitions for react-native-responsive-dimensions 3.0
// Project: https://github.com/DaniAkash/react-native-responsive-dimensions#readme
// Definitions by: Steven Conaway <https://github.com/SConaway>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/*~ If this module has methods, declare them as functions like so.
*/
export function responsiveHeight(h: number): number;
export function responsiveWidth(w: number): number;
export function responsiveFontSize(f: number): number;
export function useResponsiveHeight(h: number): number;
export function useResponsiveWidth(w: number): number;
export function useResponsiveFontSize(f: number): number;
@@ -1,16 +0,0 @@
import {
responsiveHeight,
responsiveWidth,
responsiveFontSize,
useResponsiveHeight,
useResponsiveWidth,
useResponsiveFontSize,
} from 'react-native-responsive-dimensions';
const requiredHeight = useResponsiveHeight(25);
const requiredWidth = useResponsiveWidth(100);
const requiredFontSize = useResponsiveFontSize(3);
const unrequiredHeight = responsiveHeight(25);
const unrequiredWidth = responsiveWidth(25);
const unrequiredFontSize = responsiveFontSize(25);
@@ -1,23 +0,0 @@
{
"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-responsive-dimensions-tests.ts"
]
}
@@ -1,4 +0,0 @@
{
"extends": "dtslint/dt.json"
}