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

TextInput without multiline breaks double tap space bar "." shortcut on iOS

Open joshsmith opened this issue 1 year ago • 1 comments

Description

When using TextInput without multiline on iOS, the "." Shortcut (double tapping the space bar will insert a period followed by space) functionality is broken.

Steps to reproduce

  1. Install the application with yarn ios
  2. Type into the first TextInput the characters: A new sentence
  3. Type into the second TextInput the characters: A new sentence
  4. Observe that the first TextInput has text that reads: A new sentence
  5. Observe that the second TextInput has text that reads: A new. Sentence

React Native Version

0.73.3

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 13.6.3
  CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Memory: 29.21 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.yarn/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /Users/joshsmith/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "28"
    Build Tools:
      - 28.0.3
    Android NDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9123335
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 1.8.0_74
    path: /usr/bin/javac
  Ruby:
    version: 3.2.1
    path: /Users/joshsmith/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.3
    wanted: 0.73.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

N/A

Reproducer

https://github.com/joshsmith/textinput-no-multiline-breaks-autocorrect

Screenshots and Videos

https://github.com/facebook/react-native/assets/321667/ed6dff06-1097-447b-b8e2-b67fc59d6604

joshsmith avatar Feb 01 '24 19:02 joshsmith

This looks like #27693, for which there is a pending fix in #39385.

mhoran avatar Feb 19 '24 05:02 mhoran

Hey, Yes this issue should be fixed with that PR, if anyone can ping on my PR so it can get more visibility will be great

gedu avatar Mar 01 '24 19:03 gedu