mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Remove types for react-native-responsive-dimensions (#43564)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user