mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2026-08-30 22:01:13 +00:00
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:
Vendored
+14
@@ -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> { }
|
||||
}
|
||||
Reference in New Issue
Block a user