mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 20:54:36 +00:00
Add react-native-keyboard-spacer types (#24993)
This commit is contained in:
committed by
Mohamed Hegazy
parent
dda14dffe3
commit
b4ef220eac
16
types/react-native-keyboard-spacer/index.d.ts
vendored
Normal file
16
types/react-native-keyboard-spacer/index.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Type definitions for react-native-keyboard-spacer 0.4
|
||||
// Project: https://github.com/Andr3wHur5t/react-native-keyboard-spacer#readme
|
||||
// Definitions by: Vincent Langlet <https://github.com/VincentLanglet>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
import * as React from 'react';
|
||||
import * as ReactNative from 'react-native';
|
||||
|
||||
export interface KeyboardSpacerProps {
|
||||
topSpacing?: number;
|
||||
onToggle?: (keyboardIsOpen: boolean, keyboardSpace: number) => void;
|
||||
style?: ReactNative.StyleProp<ReactNative.ViewStyle>;
|
||||
}
|
||||
|
||||
export default class KeyboardSpacer extends React.Component<KeyboardSpacerProps, any> { }
|
||||
@@ -0,0 +1,6 @@
|
||||
import * as React from 'react';
|
||||
import KeyboardSpacer from 'react-native-keyboard-spacer';
|
||||
|
||||
() => {
|
||||
<KeyboardSpacer />;
|
||||
};
|
||||
24
types/react-native-keyboard-spacer/tsconfig.json
Normal file
24
types/react-native-keyboard-spacer/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-native-keyboard-spacer-tests.tsx"
|
||||
]
|
||||
}
|
||||
1
types/react-native-keyboard-spacer/tslint.json
Normal file
1
types/react-native-keyboard-spacer/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user