1 parent 982c0ca commit bfc1cebCopy full SHA for bfc1ceb
2 files changed
ios/EnrichedTextView.mm
@@ -154,6 +154,12 @@ - (void)updateProps:(Props::Shared const &)props
154
stylePropChanged = YES;
155
}
156
157
+ // lineHeight
158
+ if (newViewProps.lineHeight != oldViewProps.lineHeight) {
159
+ [newConfig setPrimaryLineHeight:newViewProps.lineHeight];
160
+ stylePropChanged = YES;
161
+ }
162
+
163
// fontWeight
164
if (newViewProps.fontWeight != oldViewProps.fontWeight) {
165
if (!newViewProps.fontWeight.empty()) {
src/spec/EnrichedTextNativeComponent.ts
@@ -100,6 +100,7 @@ export interface NativeProps extends ViewProps {
100
// These should not be passed as regular props
101
color?: ColorValue;
102
fontSize?: Float;
103
+ lineHeight?: Float;
104
fontFamily?: string;
105
fontWeight?: string;
106
fontStyle?: string;
0 commit comments