forked from vault-development/react-native-svg-uri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
55 lines (45 loc) · 1.27 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Type definitions for react-native-svg-uri 1.1.2
// Project: https://github.com/matc4/react-native-svg-uri
// Definitions by: Kyle Roach <https://github.com/iRoachie>
// TypeScript Version: 2.2.2
import { Component } from 'react';
import { ImageURISource } from 'react-native';
interface SvgUriProps {
/**
* The width of the rendered svg
*/
width?: number | string
/**
* The height of the rendered svg
*/
height?: number | string
/**
* Source path for the .svg file
* Expects a require('path') to the file or object with uri.
* e.g. source={require('my-path')}
* e.g. source={{ur: 'my-path'}}
*/
source?: ImageURISource
/**
* Direct svg code to render. Similar to inline svg
*/
svgXmlData?: string
/**
* Fill color for the svg object
*/
fill?: string
/**
* Invoked when load completes successfully.
*/
onLoad?: Function
/**
* Fill the entire svg element with same color
*/
fillAll?: boolean
/**
* Called when a touchable polygon is pressed
* @param string: the value of the `touchable` property of the `<polygon>` tag
*/
onPolygonPress?: (string) => void
}
export default class SvgUri extends Component<SvgUriProps, {}> { }