react-native-ios-utilities
Version:
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
64 lines (59 loc) • 1.23 kB
text/typescript
import type { UIFontTextStyle } from "./UIFont";
export type UIImageSymbolWeight =
| 'unspecified'
| 'ultraLight'
| 'thin'
| 'light'
| 'regular'
| 'medium'
| 'semibold'
| 'bold'
| 'heavy'
| 'black';
export type UIImageSymbolScale =
| 'default'
| 'unspecified'
| 'small'
| 'medium'
| 'large';
export type UIImageSymbolConfigurationNativeInit = {
pointSize: number;
} | {
pointSize: number;
weight: UIImageSymbolWeight;
} | {
pointSize: number;
weight: UIImageSymbolWeight;
scale: UIImageSymbolScale;
} | {
textStyle: UIFontTextStyle;
} | {
textStyle: UIFontTextStyle;
scale: UIImageSymbolScale;
} | {
weight: UIImageSymbolWeight;
} | {
// unsupported
font: never; // UIFont
} | {
// unsupported
font: never; // UIFont
scale: UIImageSymbolScale;
} | {
hierarchicalColor: string;
} | {
paletteColors: Array<string>;
};
export type UIImageSymbolConfigurationModifiers = {
modifier: 'preferringMulticolor';
} | {
modifier: 'preferringMonochrome';
} | {
modifier: 'unspecified';
};
export type UIImageSymbolConfigurationInit = {
imageSymbolConfigItems: Array<
| UIImageSymbolConfigurationNativeInit
| UIImageSymbolConfigurationModifiers
>;
};