-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.d.ts
40 lines (31 loc) · 913 Bytes
/
index.d.ts
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
// Type definitions for react-native-triangle 0.0.6
// Project: https://github.com/Jpoliachik/react-native-triangle
// Definitions by: Kyle Roach <https://github.com/iRoachie>
// TypeScript Version: 2.2.2
import React, { Component } from 'react'
type TrianglePropsDirection = 'up' | 'right' | 'down' | 'left' | 'up-left' | 'up-right' | 'down-left' | 'down-right'
interface TriangleProps {
/**
* The width of the rendered triangle
* Default value is 0
*/
width?: number
/**
* Height of the rendered triangle
* Default value is 0
*/
height?: number
/**
* Fill color of triangle
* Accepts color strings such as hex, literals, rgba
*
* Default value is 'white'
*/
color?: string
/**
* Orientation for the triangle
* Default value is 'up'
*/
direction?: TrianglePropsDirection
}
export default class Triangle extends Component<TriangleProps, {}> { }