-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
45 lines (37 loc) · 1.44 KB
/
index.d.ts
File metadata and controls
45 lines (37 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import React from "react";
import { Constructor, NativeMethods, ViewProps } from "react-native";
interface BaseGradientProps extends ViewProps {
svgKey?:string
positions?:number[]
colors?: (number | string)[]
}
interface TileModeProp{
tileMode?: 'mirror' | 'repeat' | 'clamp'
}
interface LinearProps extends TileModeProp{
startPoint?:{ x:number,y:number }
endPoint?:{ x:number,y:number }
}
interface RadialProps extends TileModeProp{
cx?: number
cy?:number
rx?: number
ry?:number
}
interface ConicProps{
startPoint?:{ x:number,y:number }
endPoint?:{ x:number,y:number }
centerX?: number
centerY?:number
conicRotation?:number
}
declare class LinearComponent extends React.Component<LinearProps & BaseGradientProps> {}
declare class RadialComponent extends React.Component<RadialProps & BaseGradientProps> {}
declare class ConicComponent extends React.Component<ConicProps & BaseGradientProps> {}
declare const LinearGradientBase: Constructor<NativeMethods> & typeof LinearComponent;
declare const RadialGradientBase: Constructor<NativeMethods> & typeof RadialComponent;
declare const ConicGradientBase: Constructor<NativeMethods> & typeof ConicComponent;
export class LinearGradient extends LinearGradientBase {}
export class RadialGradient extends RadialGradientBase {}
export class ConicGradient extends ConicGradientBase {}
export function Color(color:number | number[] | string): number;