mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-01-23 06:00:13 +00:00
d4d15ee521
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!
15 lines
438 B
TypeScript
15 lines
438 B
TypeScript
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> { }
|
|
}
|