Neverending Programming Mistakes

    @types/react-native-svg-uri
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.4 • Public • Published

    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

    // 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 | 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

    Credits

    These definitions were written by Kyle Roach.

    Keywords

    none

    Install

    npm i @types/react-native-svg-uri

    DownloadsWeekly Downloads

    419

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    4.92 kB

    Total Files

    4

    Last publish

    Collaborators

    • types