File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
packages/react-native-web/src/exports/Text Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -74,20 +74,6 @@ const Text: React.AbstractComponent<TextProps, HTMLElement & PlatformMethods> =
74
74
const hostRef = React . useRef ( null ) ;
75
75
const { direction : contextDirection } = useLocaleContext ( ) ;
76
76
77
- const classList = [
78
- classes . text ,
79
- hasTextAncestor === true && classes . textHasAncestor ,
80
- numberOfLines === 1 && classes . textOneLine ,
81
- numberOfLines != null && numberOfLines > 1 && classes . textMultiLine
82
- ] ;
83
- const style = [
84
- props . style ,
85
- numberOfLines != null && numberOfLines > 1 && { WebkitLineClamp : numberOfLines } ,
86
- selectable === true && styles . selectable ,
87
- selectable === false && styles . notSelectable ,
88
- onPress && styles . pressable
89
- ] ;
90
-
91
77
useElementLayout ( hostRef , onLayout ) ;
92
78
useResponderEvents ( hostRef , {
93
79
onMoveShouldSetResponder,
@@ -216,7 +202,7 @@ const styles = StyleSheet.create({
216
202
maxWidth : '100%' ,
217
203
overflow : 'hidden' ,
218
204
textOverflow : 'ellipsis' ,
219
- whiteSpace : 'pre ' ,
205
+ whiteSpace : 'nowrap ' ,
220
206
wordWrap : 'normal'
221
207
} ,
222
208
// See #13
You can’t perform that action at this time.
0 commit comments