react-native icon indicating copy to clipboard operation
react-native copied to clipboard

ellipsizeMode="middle" numberOfLines={2} not work

Open ZAJ0711 opened this issue 3 years ago • 0 comments

Description

the react-native version is 0.59.10 the Text component parameter,'ellipsizeMode' and 'numberOfLines' can not work correctly when the 'numberOfLines' is more than 1,'ellipsizeMode' dose not work when i choose 'head'、'middle'

thanks

Version

0.59.10

Output of npx react-native info

React Native Environment Info: System: OS: macOS 12.4 CPU: (8) x64 Apple M2 Memory: 18.52 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.18.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 6.14.15 - /usr/local/bin/npm Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.10 => 0.59.10 npmGlobalPackages: react-native-cli: 2.0.1 react-native: 0.69.1

Steps to reproduce

1、input the params

Snack, code example, screenshot, or link to a repository

<Text ellipsizeMode="middle" numberOfLines={2} > testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest </Text>

ZAJ0711 avatar Oct 25 '22 06:10 ZAJ0711