mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
41 lines
973 B
TypeScript
41 lines
973 B
TypeScript
// Type definitions for react-native-svg-uri 1.2
|
|
// Project: https://github.com/matiascba/react-native-svg-uri#readme
|
|
// Definitions by: Kyle Roach <https://github.com/iRoachie>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
import { ImageURISource } from 'react-native';
|
|
|
|
export 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;
|
|
}
|
|
|
|
export default class SvgUri extends React.Component<SvgUriProps> { }
|