npm.io
0.0.5 • Published 2 years ago

@types/react-native-scaled-image

Licence
MIT
Version
0.0.5
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-native-scaled-image

Summary

This package contains type definitions for react-native-scaled-image (https://github.com/nanlabs/react-native-scaled-image).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-scaled-image.

index.d.ts

import * as React from "react";
import { ImageSourcePropType, ImageStyle, StyleProp } from "react-native";

export interface ScaledImageProps {
    source: ImageSourcePropType;
    height?: number | undefined;
    width?: number | undefined;
    style?: StyleProp<ImageStyle> | undefined;
}

export default class ScaledImage extends React.Component<ScaledImageProps> {}

Additional Details

Credits

These definitions were written by Matt Jaeger.