-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[IOS][New Arch] TextInput dataDetectorTypes has no effect when set to all #55367
Copy link
Copy link
Open
Labels
Component: TextInputRelated to the TextInput component.Related to the TextInput component.Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Platform: iOSiOS applications.iOS applications.Type: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)Issues and PRs related to new architecture (Fabric/Turbo Modules)Type: Unsupported VersionIssues reported to a version of React Native that is no longer supportedIssues reported to a version of React Native that is no longer supported
Metadata
Metadata
Assignees
Labels
Component: TextInputRelated to the TextInput component.Related to the TextInput component.Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Platform: iOSiOS applications.iOS applications.Type: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)Issues and PRs related to new architecture (Fabric/Turbo Modules)Type: Unsupported VersionIssues reported to a version of React Native that is no longer supportedIssues reported to a version of React Native that is no longer supported
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
When TextInput dataDetectorTypes is set to
all, it doesn't detect link, etc. But other options seem to work.The following patch fixes the issue. The value of
allisNSUIntegerMax, butunsignedIntValueconverts it from 64-bit to 32-bit and causes the issue.Steps to reproduce
Add a
TextInputand include a link in the text:<TextInput multiline={true} editable={false} dataDetectorTypes={'all'} value={text}/>The link is not displayed as a link or tappable.
React Native Version
0.80.2, 0.81
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://snack.expo.dev/@yupeng_li/textinput-datadetectortypes---all
Screenshots and Videos
No response