-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numberOfLines={1} and alignSelf: 'flex-start' when we set this text is break middle of in Android #39722
numberOfLines={1} and alignSelf: 'flex-start' when we set this text is break middle of in Android #39722
Comments
This comment was marked as resolved.
This comment was marked as resolved.
I created the you can install it with More info in the readme of https://github.com/fabriziobertoglio1987/react-native-improved (you need to copy the postinstall in your package.json). It does not require building react-native from source. |
Hello, Thanks for the issue. I have been contributing to facebook/react-native for 4 years and specialize in the Text/TextInput components. I currently have 58 facebook/react-native PRs: https://github.com/facebook/react-native/pulls?q=is%3Apr+author%3Afabriziobertoglio1987+ It is the suggested approach from the react-native core team (see this discussion). I'm publishing several fixes for Text and TextInput component in a separate library react-native-improved.
The advantages would be:
Do you want me to publish for you a patched release? I'm working on a list of priorities. Thanks |
This PR is included in the react-native-improved library: react-native-improved
Set-upIn package.json "scripts": {
+ "postinstall": "yarn run react-native-patch"
} Then npmnpm install react-native-improved --save-dev yarn v1yarn add react-native-improved --dev |
Is there something about a single line of truncated text that behaves differently from multiple lines of truncated text? Wouldn't we want this same logic to be accounted for in both scenarios? For example, wouldn't we want to handle Case 1 and Case 3 in the example below?
|
A possible solution would be to introduce the option
Should I start working on this? Thanks |
@yungsters how can I help moving this PR forward? Thanks a lot. |
TL;DR Expenxify Expensify/App#43068 mentioned it is no longer reproducible. @fabOnReact will try to reproduce by following instructions on the PR. @fabOnReact Let's continue the discussion on the PR #41770 |
If we are moving the discussion to #41770, can we close this PR? |
Description
when we use this
this not taking a full row. but when we set flex 1 it will take. but if the text is small when i click empty space pressable is triggering.
React Native Version
0.70.13
Output of
npx react-native info
System:
OS: macOS 14.0
CPU: (8) arm64 Apple M1
Memory: 1.19 GB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
Watchman: 2023.08.28.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.13.0 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 15.0/15A240d - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /Users/pradeepkumar/.jenv/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
if you want you can increase the letterspacing also we will able to reproduce even small text.
Snack, screenshot, or link to a repository
https://snack.expo.dev/@pradeepero/text-wrap-issue-on-android?platform=android
The text was updated successfully, but these errors were encountered: