# @types/react-native-svg-uri

> TypeScript definitions for react-native-svg-uri

Latest version **1.2.8** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-svg-uri
pnpm add @types/react-native-svg-uri
yarn add @types/react-native-svg-uri
bun add @types/react-native-svg-uri
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.8 |
| Published | 2023-12-21 |
| First published | 2017-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51371 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-svg-uri
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-svg-uri
- npm.io page: https://npm.io/package/@types/react-native-svg-uri

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) *
- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 1.2.8 (latest) — 2023-12-21
- 1.2.7 (ts4.5) — 2023-11-07
- 1.2.4 (ts3.6) — 2021-07-08
- 1.2.3 (ts2.8) — 2018-08-06
- 1.2.2 (ts2.6) — 2018-02-12
- 1.2.1 (ts2.3) — 2017-08-21
- 1.2.6 — 2023-10-18
- 1.2.5 — 2023-09-27
- 1.2.0 — 2017-06-30

## README

# Installation
> `npm install --save @types/react-native-svg-uri`

# Summary
This package contains type definitions for react-native-svg-uri (https://github.com/matiascba/react-native-svg-uri#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-svg-uri.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-svg-uri/index.d.ts)
````ts
import * as React from "react";
import { ImageURISource } from "react-native";

export interface SvgUriProps {
    /**
     * The width of the rendered svg
     */
    width?: number | string | undefined;

    /**
     * The height of the rendered svg
     */
    height?: number | string | undefined;

    /**
     * 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 | undefined;

    /**
     * Direct svg code to render. Similar to inline svg
     */
    svgXmlData?: string | undefined;

    /**
     * Fill color for the svg object
     */
    fill?: string | undefined;
}

export default class SvgUri extends React.Component<SvgUriProps> {}

````

### Additional Details
 * Last updated: Thu, 21 Dec 2023 19:06:51 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [Kyle Roach](https://github.com/iRoachie).

---
_Source: https://npm.io/package/@types/react-native-svg-uri · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
