Added TypeScript Typings

Not sure if you are interested in supporting Typescript users, but I did this while using your library for myself and thought I would share. Thanks!
This commit is contained in:
Paito Anderson 2017-09-30 11:36:05 -04:00 committed by GitHub
parent 5accd5c8ea
commit d4d15ee521
1 changed files with 14 additions and 0 deletions

14
index.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
import * as React from "react";
import * as ReactNative from "react-native";
declare module "react-native-linear-gradient" {
interface LinearGradientProps extends ReactNative.ViewProperties {
colors: string[],
start?: { x: number, y: number },
end?: { x: number, y: number },
locations?: number[]
}
export default class LinearGradient extends React.Component<LinearGradientProps, any> { }
}