Installation
npm install --save @types/css-to-react-native
Summary
This package contains type definitions for css-to-react-native (https://github.com/styled-components/css-to-react-native).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-to-react-native.
index.d.ts
export type StyleTuple = [string, string];
export interface Style {
[key: string]: string | number | Style;
}
export function getPropertyName(name: string): string;
export function getStylesForProperty(name: string, value: string, allowShorthand?: boolean): Style;
export default function transform(styleTuples: StyleTuple[], shorthandBlacklist?: string[]): Style;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Luiz F. Jacção, and Jacob Parker.