mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
[fix] initial 'display' value of 'Text'
Using `inline-block` breaks text overflow truncation in nested `Text` components. Fix gh-19
This commit is contained in:
@@ -9,7 +9,7 @@ const textStyleKeys = Object.keys(TextStylePropTypes)
|
||||
const styles = StyleSheet.create({
|
||||
initial: {
|
||||
color: 'inherit',
|
||||
display: 'inline-block',
|
||||
display: 'inline',
|
||||
font: 'inherit',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
|
||||
Reference in New Issue
Block a user