mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Add react-native-elevated-view types
This commit is contained in:
14
types/react-native-elevated-view/index.d.ts
vendored
Normal file
14
types/react-native-elevated-view/index.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// Type definitions for react-native-elevated-view 0.0
|
||||
// Project: https://github.com/alekhurst/react-native-elevated-view
|
||||
// Definitions by: fhelwanger <https://github.com/fhelwanger>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
import * as React from 'react';
|
||||
import * as ReactNative from 'react-native';
|
||||
|
||||
export interface ElevatedViewProperties extends ReactNative.ViewProperties {
|
||||
elevation?: number;
|
||||
}
|
||||
|
||||
export default class ElevatedView extends React.Component<ElevatedViewProperties> {}
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as React from "react";
|
||||
import ElevatedView from "react-native-elevated-view";
|
||||
|
||||
() => {
|
||||
<ElevatedView />;
|
||||
};
|
||||
|
||||
() => {
|
||||
<ElevatedView elevation={5} style={{ backgroundColor: 'red' }} />;
|
||||
};
|
||||
24
types/react-native-elevated-view/tsconfig.json
Normal file
24
types/react-native-elevated-view/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-elevated-view-tests.tsx"
|
||||
]
|
||||
}
|
||||
1
types/react-native-elevated-view/tslint.json
Normal file
1
types/react-native-elevated-view/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user