File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
apps/paper/src/Examples/API
packages/skia/src/skia/types/Paragraph Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
Rect ,
12
12
Skia ,
13
13
TextDecoration ,
14
+ TextDecorationStyle ,
14
15
mix ,
15
16
useFonts ,
16
17
} from "@shopify/react-native-skia" ;
@@ -92,8 +93,8 @@ export const Paragraphs = () => {
92
93
] ,
93
94
decorationColor : Skia . Color ( "#00223A" ) ,
94
95
decorationThickness : 2 ,
95
- decoration : 1 ,
96
- decorationStyle : TextDecoration . Overline ,
96
+ decoration : TextDecoration . Underline ,
97
+ decorationStyle : TextDecorationStyle . Dotted ,
97
98
} ;
98
99
99
100
paragraphBuilder
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ export enum TextBaseline {
50
50
export interface SkTextStyle {
51
51
backgroundColor ?: SkColor ;
52
52
color ?: SkColor ;
53
- decoration ?: number ;
53
+ decoration ?: TextDecoration ;
54
54
decorationColor ?: SkColor ;
55
55
decorationThickness ?: number ;
56
- decorationStyle ?: TextDecoration ;
56
+ decorationStyle ?: TextDecorationStyle ;
57
57
fontFamilies ?: string [ ] ;
58
58
fontFeatures ?: SkTextFontFeatures [ ] ;
59
59
fontSize ?: number ;
You can’t perform that action at this time.
0 commit comments