mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #34627 from davidpett/patch-2
[ADD] fontVariant was missing from TextStyleIOS
This commit is contained in:
Vendored
+2
@@ -757,7 +757,9 @@ export interface LayoutChangeEvent {
|
||||
};
|
||||
}
|
||||
|
||||
export type FontVariant = 'small-caps' | 'oldstyle-nums' | 'lining-nums' | 'tabular-nums' | 'proportional-nums';
|
||||
export interface TextStyleIOS extends ViewStyle {
|
||||
fontVariant?: FontVariant[];
|
||||
letterSpacing?: number;
|
||||
textDecorationColor?: string;
|
||||
textDecorationStyle?: "solid" | "double" | "dotted" | "dashed";
|
||||
|
||||
@@ -178,10 +178,14 @@ const textStyle: StyleProp<TextStyle> = {
|
||||
const imageStyle: StyleProp<ImageStyle> = {
|
||||
resizeMode: "contain",
|
||||
};
|
||||
const fontVariantStyle: StyleProp<TextStyle> = {
|
||||
fontVariant: ['tabular-nums']
|
||||
}
|
||||
|
||||
const viewProperty = StyleSheet.flatten(viewStyle).backgroundColor;
|
||||
const textProperty = StyleSheet.flatten(textStyle).fontSize;
|
||||
const imageProperty = StyleSheet.flatten(imageStyle).resizeMode;
|
||||
const fontVariantProperty = StyleSheet.flatten(fontVariantStyle).fontVariant;
|
||||
|
||||
const s = StyleSheet.create({
|
||||
shouldWork: {
|
||||
|
||||
Reference in New Issue
Block a user